Provide PKCS5 functionality with mruby-digest
Ruby Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
mrblib
test
.gitignore
.travis.yml
LICENSE
README.md
build_config.rb
mrbgem.rake
mruby-pkcs5.gem
test.sh

README.md

mruby-pkcs5 Build Status

Provide PKCS5 functionality with mruby-digest

Installation

Add this line to build_config.rb

MRuby::Build.new do |conf|
  conf.gem github: 'hanachin/mruby-pkcs5'
end

or add this line to your aplication's mrbgem.rake

MRuby::Gem::Specification.new('your-mrbgem') do |spec|
  spec.add_dependency 'mruby-pkcs5', github: 'hanachin/mruby-pkcs5'
end

Usage

p = 'password'
s = 'salt'
c = 1
dk_len = 20
digest = Digest::SHA1
PKCS5.pbkdf2_hmac(p, s, c, dk_len, digest)

How to run test

$ git clone https://github.com/hanachin/mruby-pkcs5.git
$ cd mruby-pkcs5
$ ./test.sh

License

MIT