Cannot create a correct "secretKey" for JWE #450
Answered
by
panva
Hleb-Haiduk-Software
asked this question in
Q&A
|
Hello there, Could you please share an example of "secretKey" creation? I tried all the variants from the following page from the DOC, but the same error is thrown: https://github.com/panva/jose/blob/main/docs/types/types.KeyLike.md |
Answered by
panva
Sep 13, 2022
Replies: 1 comment 3 replies
|
There is an API that aids to generate secrets of the right type and bit size for a particular algorithm. |
3 replies
Answer selected by
Hleb-Haiduk-Software
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is an API that aids to generate secrets of the right type and bit size for a particular algorithm.
https://github.com/panva/jose/blob/v4.9.2/docs/functions/key_generate_secret.generateSecret.md#readme