CachingKeyGenerator is a wrapper around KeyGenerator which allows users to avoid re-executing the key generation process when it's called using the same salt and key_size
Methods
- G
- N
Class Public methods
new(key_generator)
Link
Instance Public methods
generate_key(salt, key_size=64)
Link
Returns a derived key suitable for use. The default key_size is chosen to be compatible with the default settings of ActiveSupport::MessageVerifier. i.e. OpenSSL::Digest::SHA1#block_length