java.security.NoSuchAlgorithmException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Error with BouncyCastle and Algorithm
    via Stack Overflow by TiREX
    ,
  • GitHub comment 2267#251897758
    via GitHub by CoderSpinoza
    ,
  • JTDS 1.3 connection issue with java8 x64
    via Stack Overflow by fivelements
    ,
  • A PKCS12 KeyStore cannot decrypt and extract an encoded AES SecretKey. The attached program fails with: Exception in thread "main" java.security.UnrecoverableKeyException: Get Key failed: AES SecretKeyFactory not available at sun.security.pkcs12.PKCS12KeyStore.engineGetKey(PKCS12KeyStore.java:419) at sun.security.pkcs12.PKCS12KeyStore.engineGetEntry(PKCS12KeyStore.java:1291) at sun.security.util.KeyStoreDelegator.engineGetEntry(KeyStoreDelegator.java:166) at java.security.KeyStore.getEntry(KeyStore.java:1535) at P12SecretKey.run(P12SecretKey.java:47) at P12SecretKey.main(P12SecretKey.java:21) Caused by: java.security.NoSuchAlgorithmException: AES SecretKeyFactory not available at javax.crypto.SecretKeyFactory.<init>(SecretKeyFactory.java:122) at javax.crypto.SecretKeyFactory.getInstance(SecretKeyFactory.java:160) at sun.security.pkcs12.PKCS12KeyStore.engineGetKey(PKCS12KeyStore.java:396) ... 5 more The problem is that the PKCS12 KeyStore uses a SecretKeyFactory to decode AES keys, but there is no AES SecretKeyFactory implementation except on Solaris (via the PKCS11 provider). It turns out that for SecretKeyFactory, AES is not an essential requirement, since you can use a generic SecretKeySpec object to create an AES key and don't really need a SecretKeyFactory. Also, in general a SecretKeyFactory should not be used with a SecretKeySpec, since by definition, SecretKeySpec objects contain the raw key in a provider-independent format and do not need to be decoded.
    via by Sean Mullan,
  • Decrypting WebLogic Passwords
    via by Unknown author,
    • java.security.NoSuchAlgorithmException: PBEWITHSHAAND256BITAES-CBC-BC SecretKeyFactory not available at javax.crypto.SecretKeyFactory.<init>(SecretKeyFactory.java:122) at javax.crypto.SecretKeyFactory.getInstance(SecretKeyFactory.java:160)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    3 more bugmates