Skip to content

Cryptographically secure deterministic random bit generators for Ruby

License

Notifications You must be signed in to change notification settings

louismullie/drbg-rb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

##drbg-rb

This gem implements cryptographically secure deterministic random bit generators for Ruby. Currently, the gem supports HMAC_DRBG as described in NIST SP 800-90A.

###Warning

If you are looking for a generic Ruby CSRPNG, this is probably not what you are looking for. Instead, use SecureRandom. Only use this library if you absolutely need a random number generator that is explicitly seedable. If you don't know what this means, do not use this library.

###Install

gem install drbg-rb

###Usage

require 'drbg-rb'

rng = DRBG::HMAC.new(entropy)
bytes = rng.generate(10)

###Reference

  • NIST SP 800-90 - Deterministic Random Bit Generator Validation System

###License

This program is released under the BSD license.

About

Cryptographically secure deterministic random bit generators for Ruby

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages