Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example for Encrypt Data #307

Open
bryannbarbosa opened this issue Mar 9, 2021 · 1 comment
Open

Example for Encrypt Data #307

bryannbarbosa opened this issue Mar 9, 2021 · 1 comment

Comments

@bryannbarbosa
Copy link

Hello everyone, I want to implement a solution to encrypt a JWT in JWE, but I find it difficult to find a working example, could the support provide a happy way for this in the documentation?

The requirements for encrypt are: {"alg": "RSA-OAEP", "enc": "A128GCM", "cty": "JWT"}

I also have a PEM public key, if anyone can help in any way, I would be immensely grateful!

@phish108
Copy link
Contributor

phish108 commented Mar 9, 2021

Cheers, @bryannbarbosa

You could get started with my node-jose-tools package. It offers a CLI interface for node-jose. Its docu has some examples and you can toy with different features and strategies on the command line.

Each tool is structurally isolated, so you can have a closer look at how to implement the different features with node-jose. It has also a worked example for importing different key formats, including PEM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants