any way to decrypt as i'm thinking about encrypting my email address's in the db so i would need a way to decyrpt to send emails?
Printable View
any way to decrypt as i'm thinking about encrypting my email address's in the db so i would need a way to decyrpt to send emails?
I'm not sure if there is a way to do it in emails.
I'd just decrypt it from an online decrypter.
No such thing as a completely working decryptor. They mostly use rainbow patterns.
If your encrypting emails use base64_encode then you decode with base64_decode
I agree with Richard. Thats the best thing to do if you need to decrypt and use it later. But md5() is good for passwords.
Yeh, use md5 for passwords.
If you are looking for a more secure and effective way then I recommend the mcrypt functions in PHP:
http://us3.php.net/mcrypt
For a secure cipther I recommend the "MCRYPT_RIJNDAEL_256" cipher - Its used by the US Goverment for top secret documents.
Just thinking of client confidentiality and if we were hacked which i hope not.
http://en.wikipedia.org/wiki/Advance...ption_Standard
"In cryptography, the Advanced Encryption Standard (AES), also known as Rijndael, is a block cipher adopted as an encryption standard by the U.S. government."
Also, http://www.cnss.gov/Assets/pdf/cnssp_15_fs.pdf
"The design and strength of all key lengths of the AES algorithm (i.e., 128, 192 and 256) are sufficient to protect classified information up to the SECRET level. TOP SECRET information will require use of either the 192 or 256 key lengths. The implementation of AES in products intended to protect national security systems and/or information must be reviewed and certified by NSA prior to their acquisition and use"
Also heres an example of it working on my server:
http://usersystem.net/mcrypt.php
Use http://usersystem.net/mcrypt.php?enc=<base64 encoded result here> to decode.
Its base64 encoded for usability, unless you want binary data outputted.
:( ahhh perhaps i wont actually do that then i may see if i can create a function that will add random letters or something will be hard tho.
You could simply make a function which does like:
a => b
b => a
c => d
d => c
Or a bit more complicated. Then just have another function which reverses it?
Its not rocket science to crack those though. Even someone like you or me could crack them. If you get a large enough sample you can compare the number of times a letter appears to how many times on average it appears in the English language and hey presto you have decrypted it.