Encrypt text to AES/CBC/PKCS7Padding

前端 未结 3 667
孤独总比滥情好
孤独总比滥情好 2020-12-16 00:52

I am developing a web application to encrypt some texts with java 6.

The encrypted that I have to do is a AES (Rijndael) in CBC mode with PKCS7 padding and a 128-bi

3条回答
  •  死守一世寂寞
    2020-12-16 01:14

    Java only provides PKCS#5 padding, but it is the same as PKCS#7 padding. See this question on Crypto.SE:

    What is the difference between PKCS#5 padding and PKCS#7 padding

    They are interchangeable for the common block ciphers like AES and DES.

提交回复
热议问题