Skip to content
This repository has been archived by the owner on Sep 22, 2020. It is now read-only.

Logangirvin/json serialization #20

Merged
merged 43 commits into from
Mar 25, 2019
Merged

Conversation

logangirvin
Copy link
Contributor

Introduced support for flattened JSON serialization (#19) on JWS and JWE tokens. More work has to be done for general JSON serialization, however you can encode/sign in flattened format, as well as decrypt and verify from a flattened JSON serialized object as content for the constructor.

@logangirvin logangirvin added enhancement New feature or request review Needing review labels Mar 13, 2019
@logangirvin logangirvin self-assigned this Mar 13, 2019
iv = Buffer.from(Base64Url.toBase64(base64EncodedValues[2]), 'base64');
ciphertext = Buffer.from(Base64Url.toBase64(base64EncodedValues[3]), 'base64');
authTag = Buffer.from(Base64Url.toBase64(base64EncodedValues[4]), 'base64');
// 15. Let the Additional Authentication Data (AAD) be ASCII(encodedprotectedHeader)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sanity: missing '3.', and seems odd that '15.' appears here.

@codeglobally codeglobally self-requested a review March 25, 2019 17:23
@logangirvin logangirvin merged commit 6025d1e into master Mar 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request review Needing review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants