what's the difference between 1 way encryption and 2 way encryption with php and MySQL?
+4
A:
One-way cannot be reversed. Two-way can be.
MD5 and SHA1 are examples of one-way "encryption" (hashing, really). AES_ENCRYPT is an example of two-way encryption.
ceejayoz
2010-10-21 21:34:23
thanks a lot, I appreciate it.
raffi keklikian
2010-10-21 22:16:46
A:
PHP's crypt() function is also one way which is some what misleading because encryption generally means two way. But crypt effectively does the same thing as hashing (1 way), it just saves the salt with the output.
Brian Perin
2010-10-21 23:03:13