Skip to content

base64 Url-Safe value for k #419

@gam04

Description

@gam04

Hi.

I have a question regarding the 'k' field of JWK.
According to the following specification : https://www.rfc-editor.org/rfc/rfc7518.html#section-6.4.1

Should values for the 'k' field other than Base64 URL Safe be accepted?

If I create an object using jose.JWK.asKey using the following values:

{"kty":"oct","use":"sig","alg":"HS256","k":"gCwIZwLqrzbygmkv/8+PMEnqL6TiMMfqK6v4YjLtc5I="}

The key is created even though the 'k' field contains a non-Base64 URL Safe value.

Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions