I currently use, base64_encode() to encode a user\'s password, this works well because it allows me to simply use base64decode() to dec
You will want to use a hash(preferably sha1) with "salt"