class

ActiveSupport::KeyGenerator

v6.0.0 - Show latest stable - Superclass: Object

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.

Files

  • activesupport/lib/active_support/key_generator.rb