Why is AES encrypted cipher of the same string with the same key always different?

后端 未结 4 1213
我寻月下人不归
我寻月下人不归 2021-01-21 14:21

I have a file called plain.txt. Inside the file I have:

Hello Hello Hello Hello

I am using this command to encrypt it:

openssl          


        
4条回答
  •  长情又很酷
    2021-01-21 14:51

    Because the "salt" varies each time. This prevents, for example, rainbow table type attacks on the encrypted values. See http://en.wikipedia.org/wiki/Salt_(cryptography)

提交回复
热议问题