mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Move SecretKeyGenerator comments to the correct place for rdoc. Closes #10940 [FooBarWidget]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8826 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
3df052ac60
commit
9e13b966f6
1 changed files with 6 additions and 7 deletions
|
@ -1,11 +1,10 @@
|
||||||
# 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)"
|
|
||||||
|
|
||||||
module Rails
|
module Rails
|
||||||
|
# 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)"
|
||||||
class SecretKeyGenerator
|
class SecretKeyGenerator
|
||||||
GENERATORS = [ :secure_random, :win32_api, :urandom, :openssl, :prng ].freeze
|
GENERATORS = [ :secure_random, :win32_api, :urandom, :openssl, :prng ].freeze
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue