Sha256: 63707b7f22cbe9bd5fde4bcff6a241d375c22a6bcfa0fc13ae6468ab05f41d7a
Contents?: true
Size: 1.49 KB
Versions: 1
Compression:
Stored size: 1.49 KB
Contents
# jwt-eddsa A library extending the ruby-jwt gem with EdDSA algorithms **NOTE: This gem is still WIP** Work is currently done in [ruby-jwt](https://github.com/jwt/ruby-jwt/pull/607) to allow extending the algorithms. Plan is to replace rbnacl with something else in the near future. ## Installation Will only work with the WIP branch, so adding the following to your the Gemfile should do the trick: ``` gem "jwt", github: "anakinj/ruby-jwt", branch: "extendable-algos" ``` ``` require "jwt/eddsa" # not verified if this actually works ``` ## Usage ```ruby private_key = RbNaCl::Signatures::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 rspec ``` ## 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](https://github.com/anakinj/jwt-eddsa/blob/master/CODE_OF_CONDUCT.md). ## License The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT). ## 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](https://github.com/[USERNAME]/jwt-eddsa/blob/master/CODE_OF_CONDUCT.md).
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jwt-eddsa-0.2.0 | README.md |