Class: OpenToken::PasswordKeyGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/opentoken-newrelic-rails23/password_key_generator.rb

Constant Summary collapse

SHA1_DIGEST =
OpenSSL::Digest::Digest.new('sha1')

Class Method Summary collapse

Class Method Details

.generate(password, cipher) ⇒ Object



6
7
8
9
# File 'lib/opentoken-newrelic-rails23/password_key_generator.rb', line 6

def generate(password, cipher)
  salt = 0.chr * 8
  generate_impl(password, cipher, salt, 1000)
end