Skip to content

A library extending the ruby-jwt gem with EdDSA algorithms

License

Notifications You must be signed in to change notification settings

anakinj/jwt-eddsa

Repository files navigation

jwt-eddsa

Gem Version Build status

A library extending the ruby-jwt gem with EdDSA algorithms. Based on RFC 8037.

Installation

Add the gem to your Gemfile:

gem "jwt-eddsa"

And in your application add the following require:

require "jwt/eddsa"

Usage

private_key = Ed25519::SigningKey.new("b" * 32)
token = JWT.encode({pay: "load"}, private_key, "EdDSA")
payload, header = JWT.decode(token, private_key.verify_key, true, algorithm: "EdDSA")

Development

bundle install
bundle exec rake

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/anakinj/jwt-eddsa. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

In this repository, pull request titles must follow the Conventional Commit specification to ensure clear and consistent communication of changes.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the jwt-eddsa project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

About

A library extending the ruby-jwt gem with EdDSA algorithms

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages