Jump to content

Archived

This topic is now archived and is closed to further replies.

Drezard

Password Encrpytion

Recommended Posts

Hey, is there anyway you can encrypt a PHP String then unecrypt it later.

- Cheers, Daniel

Share this post


Link to post
Share on other sites
The mcrypt module allows encryption. http://sg.php.net/manual/en/ref.mcrypt.php

If you are storing user's passwords, it's a better idea to use one-way encryption with md5().  You can always set the user's password to something new if they forget the old one.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.