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

后端 未结 3 1336
無奈伤痛
無奈伤痛 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:28

    This error could indicate that you need to install JCE (Java Cryptography Extension).

    Download this file (or newer version) and copy jars to JDK_FOLDER/jre/lib/security http://www.oracle.com/technetwork/pt/java/javase/downloads/jce-6-download-429243.html

提交回复
热议问题