Ruby on Rails latest stable (v5.2.3) - 0 notes - Superclass: Object

Class deprecated or moved

This class is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

A class for creating random secret keys. This class will do its best to create a random secret key that’s as secure as possible, using whatever methods are available on the current platform. For example:

  generator = Rails::SecretKeyGenerator("some unique identifier, such as the application name")
  generator.generate_secret     # => "f3f1be90053fa851... (some long string)"

This class is deprecated in Rails 2.2 in favor of ActiveSupport::SecureRandom. It is currently a wrapper around ActiveSupport::SecureRandom.

Show files where this class is defined (1 file)
Register or log in to add new notes.