Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jwt-eddsa

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jwt-eddsa

  • 0.8.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

jwt-eddsa

Gem Version Build status

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

NOTE: This gem is still WIP

Work is currently done in ruby-jwt 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"
gem "jwt-eddsa"
require "jwt/eddsa" # not verified if this actually works

Usage

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 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.

FAQs

Package last updated on 15 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc