Awesome
jwt-eddsa
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.