Java AES: No installed provider supports this key: javax.crypto.spec.SecretKeySpec

后端 未结 3 1327
無奈伤痛
無奈伤痛 2020-12-31 09:40

I\'m trying to set up 128 bit AES encryption, and I\'m getting an exception thrown on my Cipher.init:

No installed provider supports this key: javax.crypto.spe

3条回答
  •  难免孤独
    2020-12-31 10:40

    This error happens with me, when providing an incorrect key to SecretKeySpec constructor.

提交回复
热议问题