Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/furpu/jwt.zig
Zig JSON Web Token package.
https://github.com/furpu/jwt.zig
jsonwebtoken jwt zig zig-library zig-package
Last synced: 4 months ago
JSON representation
Zig JSON Web Token package.
- Host: GitHub
- URL: https://github.com/furpu/jwt.zig
- Owner: furpu
- License: mit
- Created: 2024-08-28T22:49:57.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-09-28T03:35:25.000Z (5 months ago)
- Last Synced: 2024-10-05T14:45:24.956Z (4 months ago)
- Topics: jsonwebtoken, jwt, zig, zig-library, zig-package
- Language: Zig
- Homepage:
- Size: 42 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jwt.zig
Zig implementation of JSON Web Tokens ([RFC 7519](https://datatracker.ietf.org/doc/html/rfc7519)).
## Claims
Claim verification is not implemented yet.
Future work includes adding features to verify `aud`, `exp`, `iat` and `nbf` claims as described in [Section 4](https://datatracker.ietf.org/doc/html/rfc7519#section-4.1) of the RFC.
## Algorithms
| Supported | alg Parameter | Description |
|:---------:|---------------|-------------|
| ✅ | none | No digital signature or MAC value included |
| ✅ | HS256 | HMAC using SHA-256 hash algorithm |
| ✅ | HS384 | HMAC using SHA-384 hash algorithm |
| ✅ | HS512 | HMAC using SHA-512 hash algorithm |
| ✅ | ES256 | ECDSA using P-256 curve and SHA-256 hash algorithm |
| ✅ | ES384 | ECDSA using P-384 curve and SHA-384 hash algorithm |
| ❌ | ES512 | ECDSA using P-521 curve and SHA-512 hash algorithm |
| ❌ | PS256 | RSASSA-PSS using SHA-256 hash algorithm |
| ❌ | PS384 | RSASSA-PSS using SHA-384 hash algorithm |
| ❌ | PS512 | RSASSA-PSS using SHA-512 hash algorithm |
| ❌ | RS256 | RSASSA-PKCS1-v1_5 using SHA-256 hash algorithm |
| ❌ | RS384 | RSASSA-PKCS1-v1_5 using SHA-384 hash algorithm |
| ❌ | RS512 | RSASSA-PKCS1-v1_5 using SHA-512 hash algorithm |