bcrypt_pbkdf-ruby
bcrypt_pbkdf is a ruby gem implementing bcrypt_pbkdf from OpenBSD. This is currently used by net-ssh to read password encrypted Ed25519 keys.
Acknowledgements
- The gut of the code is based on OpenBSD's bcrypt_pbkdf.c implementation
- Some ideas/code were taken adopted bcrypt-ruby: https://github.com/codahale/bcrypt-ruby
Upstream sources
The C sources are synced from openssh-portable, which tracks OpenBSD CVS:
| File | OpenBSD version |
|---|---|
ext/mri/bcrypt_pbkdf.c |
v1.17 |
ext/mri/blowfish.c |
v1.20 |
Links
Building
For windows and osx cross build make sure you checked out the gem source under the home directory and have docker installed.
gem install rake-compiler-dockbundle exec rake compile
bundle exec rake test
bundle exec rake clean clobber
bundle exec rake gem:all
bundle exec rake release
bundle exec rake gem:release