Skip to content

passphrase for HS256 #770

Answered by afoninsky
afoninsky asked this question in Q&A
Discussion options

You must be logged in to vote

Let me answer to myself: https://tools.ietf.org/id/draft-jones-jose-json-private-and-symmetric-key-00.html#kOctDef

The k (key value) member contains the value of the symmetric (or other single-valued) key. It is represented as the base64url encoding of the octet sequence containing the key value.

{ "keys": [ { "kty": "oct", "use": "sig", "kid": "sig-1624969245", "k": "c29tZS1zZWNyZXQ", "alg": "HS256" } ] }

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by afoninsky
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant