tags:

views:

43

answers:

2

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
thanks a lot, I appreciate it.
raffi keklikian
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