CryptoJS AES encryption and Java AES decryption

前端 未结 2 504
猫巷女王i
猫巷女王i 2020-11-28 10:24

I\'m only asking this because I have read many posts for 2 days now about crypto AES encryption, and just when I thought I was getting it, I realized I wasn\'t getting it at

2条回答
  •  旧时难觅i
    2020-11-28 10:50

    Disclaimer: Do not use encryption unless you understand encryption concepts including chaining mode, key derivation functions, IV and block size. And don't roll your own security scheme but stick to an established one. Just throwing in encryption algorithms doesn't mean an application has become any more secure.

    CryptoJS implements the same key derivation function as OpenSSL and the same format to put the IV into the encrypted data. So all Java code that deals with OpenSSL encoded data applies.

    Given the following Javascript code:

    var text = "The quick brown fox jumps over the lazy dog. 

提交回复
热议问题