JWEDecryptionFailed: decryption operation failed #82
Replies: 5 comments
-
Please provide something tangible - an actual JWE token, the secret key, the java code that produced it, your node version, your library version, etc |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, JAVA code that can decrypt under NDA |
Beta Was this translation helpful? Give feedback.
-
In such case I cannot help you. All I can say that this implementation is checked against the IETF RFC7520 test vectors (includes 5 Give me something to work with here. Best would be the producing code. I don't see how a snippet of code that encrypts data can be under NDA. But it baffles you expect to get help without being able to provide anything reproducible. |
Beta Was this translation helpful? Give feedback.
-
Here is the decryption function in JAVA, which can be decrypted using the key. The encryption function is not available to me |
Beta Was this translation helpful? Give feedback.
-
That's of no use to me. I just checked Nimbus produced JWEs and AES GCM works with no issues, ergo - this library is interoperable with other JWE conform libraries. Your JWE producer is likely implementing JWE wrong. |
Beta Was this translation helpful? Give feedback.
-
Hello everyone.
You need to decrypt the JWE and get the data.
Checked through JAVA - using the existing key it is possible to decrypt the message, but in nodejs it does not work
The library gives an error
JWEDecryptionFailed: decryption operation failed
the key is parsed, the message is validated by JWE, it already crashes during decryption
An error does not occur in the function at the time of return
aes_gcm.js
My code
Beta Was this translation helpful? Give feedback.
All reactions