AES Encryption Java Invalid Key length

后端 未结 5 1688
甜味超标
甜味超标 2020-12-30 10:23

I am trying to create an AES encryption method, but for some reason I keep getting

java.security.InvalidKeyException: Key length not 128/192/256

5条回答
  •  北荒
    北荒 (楼主)
    2020-12-30 10:52

    For a stronger key strength encryption you would need to download Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files.

    http://java.sun.com/javase/downloads/index.jsp (Check Other Downloads).

提交回复
热议问题