PackageTrack
Sign in Get early access

jwt_generator

A simple pure dart package used for creating and validating Json Web Tokens using the private and public key provided, refer to documentation for more information.

0.0.9 2.5K downloads/mo #4932 most downloaded on pub.dev aortem/dartstream

What this package is like to depend on

Last release 4 months ago

08 Apr 2026

Ships unpredictably

gaps range from 8 days to 10 months

Most releases are documented

notes for 8 of 9 stable releases

Nothing withdrawn

no release was ever pulled

2 years old

9 releases · first in 2024

4 releases in the last 12 months

see the full history below

Release timeline

9 releases · Oct 2024 to Apr 2026
2025 2026
Release Pre-release

Releases

latest 9
  1. 0.0.9 08 Apr 2026
    Release notes
    • Update standard features and dstesting tools depedency
    Open source →
  2. 0.0.8 18 Oct 2025
    Release notes
    • Bump to Dart version 3.9.4
    Open source →
  3. 0.0.7 28 Sep 2025
    Release notes

    Added

    • HS256 support
      • HmacSignifier for signing JWTs with HMAC-SHA256.
      • HmacSignatureVerifier for verifying HS256 JWTs with a shared secret.
    • ParsedJwt helper (generalized)
      • ParsedJwt.parse(String) moved to a generic location and exported; parses header/payload JSON and exposes signature + signingInput bytes.
    • RS256 convenience
      • verifyJwtRs256(String jwt, RSAPublicKey publicKey) top-level helper that verifies an RS256 JWT with a PointyCastle public key (handles nullable modulus/exponent safely).

    Changed

    • RSA helpers hardened
      • Normalized Base64URL handling (padding tolerant) in verification paths.
      • Tidied error messages and kept them human-readable (JwtException, etc.).
    • Examples
      • Example now shows an end-to-end RS256 flow (build + verify with public key) and an HS256 flow (shared secret).
    • Project hygiene
      • Addressed analyzer lints across the new/updated files (including null-safe handling of RSAPublicKey.modulus/exponent).
      • Kept public API shape stable (no breaking changes).

    Fixed

    • Signature verification now correctly accepts tokens created with or without = padding (Base64URL normalization).
    • Minor doc/code inconsistencies in exports (e.g., exposing parsed_jwt.dart and RS256 helpers).

    Documentation

    • README overhauled
      • Correct install commands (dart pub add jwt_generator, flutter pub add jwt_generator).
      • Clear guidance on RSA key generation and safe storage.
      • Complete RS256 and HS256 examples: generate → sign → verify.
    • Clarified error types and typical failure modes in the docs.
    Open source →
  4. 0.0.6 17 Sep 2025
    Release notes
    • Bump to Dart version 3.9.3
    • Bump ds_standard_features package
    Open source →
  5. 0.0.5 17 Aug 2025
    Release notes
    • Bump to Dart version 3.9
    • Fix test packages
    Open source →
  6. 0.0.4 06 Aug 2025
    Release notes

    Added

    • ✅ Introduced asn1lib (v1.6.5) as a dependency to support ASN.1 DER/PEM key parsing for RSA/EC verification.
    • ➕ Enhanced RS256 verifier to load and validate public keys from both JWK JSON and PEM/DER formats.

    Changed

    • ♻️ Refactored jwt_rs256_verifier.dart and parsed_jwt.dart for cleaner imports and null-safety alignment.
    • 🔧 Improved linting rules and applied fixes across the library.

    Fixed

    • 🐛 Resolved missing import in test suite (rs256_verifier_test.dart) to ensure all test cases compile and run.

    Documentation

    • 📝 Added this CHANGELOG.md.
    • 📖 Updated README.md with dependency instructions and usage examples for DER/PEM parsing.
    Open source →
  7. 0.0.3 10 Oct 2024
    Release notes
    • Initial version.
    Open source →
  8. 0.0.2 02 Oct 2024

    Nothing published for this version

  9. 0.0.1 02 Oct 2024
    Release notes

    chore: update ds cli util

    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive