https://github.com/rgl/jws-jwe-go-example
Sign then Encrypt a Payload from Alice to Bob using JSON Web Signature (JWS) and JSON Web Encryption (JWE) in a Go application using the lestrrat-go/jwx/v2 library.
https://github.com/rgl/jws-jwe-go-example
encrypt example jose jwe jws sign
Last synced: 6 months ago
JSON representation
Sign then Encrypt a Payload from Alice to Bob using JSON Web Signature (JWS) and JSON Web Encryption (JWE) in a Go application using the lestrrat-go/jwx/v2 library.
- Host: GitHub
- URL: https://github.com/rgl/jws-jwe-go-example
- Owner: rgl
- Created: 2024-03-10T11:14:09.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-11T08:18:15.000Z (over 1 year ago)
- Last Synced: 2024-12-31T11:06:04.953Z (9 months ago)
- Topics: encrypt, example, jose, jwe, jws, sign
- Language: Go
- Homepage:
- Size: 176 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# About
[](https://github.com/rgl/jws-jwe-go-example/actions/workflows/build.yml)
Sign then Encrypt a Payload from Alice to Bob using [JSON Web Signature (JWS)](https://datatracker.ietf.org/doc/html/rfc7515) and [JSON Web Encryption (JWE)](https://datatracker.ietf.org/doc/html/rfc7516) in a Go application using the [lestrrat-go/jwx/v2 library](https://github.com/lestrrat-go/jwx).

# References
* [RFC 7515: JSON Web Signature (JWS)](https://datatracker.ietf.org/doc/html/rfc7515).
* [RFC 7516: JSON Web Encryption (JWE)](https://datatracker.ietf.org/doc/html/rfc7516).
* [RFC 7517: JSON Web Key (JWK)](https://datatracker.ietf.org/doc/html/rfc7517).
* [RFC 7518: JSON Web Algorithms (JWA)](https://datatracker.ietf.org/doc/html/rfc7518).
* [RFC 7519: JSON Web Token (JWT)](https://datatracker.ietf.org/doc/html/rfc7519).
* [RFC 7520: Examples of Protecting Content Using JSON Object Signing and Encryption (JOSE)](https://datatracker.ietf.org/doc/html/rfc7520).