Argon2 KDF

Argon2 key derivation for Ruby

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

For password hashing, use the argon2 gem

Build Status


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


View the changelog


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

To get started with development:

git clone
cd argon2-kdf
bundle install
bundle exec rake vendor:all
bundle exec rake test