Posted by Disco Octopus on 01/31/06 02:17
J.O. Aho wrote:
> gene.ellis@gmail.com wrote:
>> I am using PHP to allow users to create profiles on our website and
>> store them in a MS SQL database and I am wondering, how can I encrypt
>> the passwords? Also, how would I be able to match the right password
>> when it is time to retrieve the password from the database? Thank you
>> very much for your help!
>
> For a really simple encryption you can use str_rot13(), you just modify the
> password before you save it to the database and decrypt it after you fetched
> it from the database.
>
> $encrypted=str_rot13($password);
>
> $password=str_rot13($encrypted);
This does not encrypt, it only encodes.
--
if you pay for your gym memebership, use it
[Back to original message]
|