Skip to content

Cannot create a correct "secretKey" for JWE #450

Answered by panva
Gleb-Gaiduk asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@panva
Comment options

@Gleb-Gaiduk
Comment options

@panva
Comment options

Answer selected by Gleb-Gaiduk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants