<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1031547" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1031547</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/getting-password-own-database#comment-1184966</link>
    <description> &lt;p&gt;md5 is pretty good, but long. can be shortened&lt;/p&gt;
&lt;p&gt;Think there is a thread around somewhere on md5 passwords&lt;/p&gt;
 </description>
     <pubDate>Wed, 09 Nov 2005 09:37:11 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1184966 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/getting-password-own-database#comment-1184963</link>
    <description> &lt;p&gt;Thanks for replying imjpriebe, I found out that it&#039;s not recommended to use the password function of MySQL.&lt;/p&gt;
&lt;p&gt;A better way would be to encrypt the password first, and then put it into the database as text. That way, even if someone gets a hold of your database, they won&#039;t easily get the passwords. Or something like that.&lt;/p&gt;
&lt;p&gt;After that, to check, as you say, is to encrypt the password that the user inputs.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 09 Nov 2005 08:27:39 +0000</pubDate>
 <dc:creator>Renegade</dc:creator>
 <guid isPermaLink="false">comment 1184963 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/getting-password-own-database#comment-1184961</link>
    <description> &lt;p&gt;What algorithm does MySQL use and how can I check that the right password has been used? This is the query that I used:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;INSERT INTO `user` ( `userID` , `username` , `password` , `userlevel` )&lt;br /&gt;VALUES (&lt;br /&gt;&amp;#039;&amp;#039;, &amp;#039;&amp;lt;username&amp;gt;&amp;#039;, PASSWORD( &amp;#039;&amp;lt;password&amp;gt;&amp;#039; ) , &amp;#039;&amp;lt;userlevel&amp;gt;&amp;#039;&lt;br /&gt;);&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
 </description>
     <pubDate>Wed, 09 Nov 2005 08:10:49 +0000</pubDate>
 <dc:creator>Renegade</dc:creator>
 <guid isPermaLink="false">comment 1184961 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/getting-password-own-database#comment-1184873</link>
    <description> &lt;p&gt;I find it works to do it in the SQL code itself. If it&#039;s encrypted in the database, you don&#039;t unencrypt it, you just encrypt the one the user just tried to enter.&lt;/p&gt;
&lt;p&gt;This is pseudo code, but...&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;$sql = &amp;quot;SELECT * WHERE username = &amp;#039;$_POST[&amp;#039;username&amp;#039;]&amp;#039; AND &lt;br /&gt;password = password(&amp;#039;$_POST[&amp;#039;password&amp;#039;]&amp;#039;)&amp;quot;;&lt;br /&gt;&lt;br /&gt;$ref = $sql-&amp;gt;execute();&lt;br /&gt;&lt;br /&gt;if ($ref-&amp;gt;rows())&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; echo &amp;quot;You&amp;#039;re in.&amp;quot;;&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; echo &amp;quot;Nice try, but I don&amp;#039;t think so.&amp;quot;;&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
 </description>
     <pubDate>Tue, 08 Nov 2005 13:19:46 +0000</pubDate>
 <dc:creator>timjpriebe</dc:creator>
 <guid isPermaLink="false">comment 1184873 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
