Provide an example to decrypt jwe where KeyManagementAlgorithm is PBES2-HS256+A128KW

Issue #172 new
dharani kumar created an issue

I need to decrypt a JWK Private key encrypted using JWE.

Content encryption key is encrypted using PBES2-HS256+A128KW algorithm where a shared passphrase is used to derive AES key which then encrypts the CEK.

Currently there is no example in the wiki for the mentioned scenario.

Need your help. Thanks

Comments (3)

  1. Sergey Beryozkin

    Hi Brian, I’ve been looking at the examples as well, looks like it all works even without `PbkdfKey`, not sure `SecretKeySpec` cares about the algorithm :-). thanks

  2. Brian Campbell repo owner

    Yeah, the key derivation isn’t looking at the algorithm and all PbkdfKey really does it convert the UTF8 password sting to a byte array that will be the key.

  3. Log in to comment