Type:
Class

KeyGenerator is a simple wrapper around OpenSSL's implementation of PBKDF2 It can be used to derive a number of keys for various purposes from a given secret. This lets Rails applications have a single secure secret, but avoid reusing that key in multiple incompatible contexts.

generate_key

generate_key(salt, key_size=64) Instance Public methods Returns a derived key

2015-06-20 00:00:00
new

new(secret, options = {}) Class Public methods

2015-06-20 00:00:00