Argon2 KDF

Argon2 key derivation for Ruby

  • No dependencies
  • Works on Linux, Mac, and Windows

For password hashing, use the argon2 gem

Build Status Build status

Installation

Add this line to your application’s Gemfile:

gem 'argon2-kdf'

Getting Started

Argon2::KDF.argon2id("pass", salt: "somesalt", t: 3, m: 15, p: 1, length: 32)

argon2i and argon2d are also supported

History

View the changelog

Contributing

Everyone is encouraged to help improve this project. Here are a few ways you can help:

To get started with development:

git clone https://github.com/ankane/argon2-kdf.git
cd argon2-kdf
bundle install
bundle exec rake vendor:all
bundle exec rake test