Jump to content


Photo

Password Encrpytion


  • Please log in to reply
2 replies to this topic

#1 Drezard

Drezard
  • Members
  • PipPipPip
  • Advanced Member
  • 244 posts

Posted 11 September 2006 - 05:57 AM

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

- Cheers, Daniel

#2 btherl

btherl
  • Staff Alumni
  • Advanced Member
  • 3,893 posts
  • LocationAustralia

Posted 11 September 2006 - 07:42 AM

The mcrypt module allows encryption. http://sg.php.net/ma.../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.

#3 Jenk

Jenk
  • Members
  • PipPipPip
  • Advanced Member
  • 778 posts

Posted 11 September 2006 - 08:37 AM

pedantic: md5 is not encryption, it is hashing.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users