开发者

1 way encryption and 2 way encryption

what's the di开发者_StackOverflow中文版fference between 1 way encryption and 2 way encryption with php and MySQL?


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜