Module: Shhh::CipherHandler::ClassMethods

Defined in:
lib/shhh/cipher_handler.rb

Instance Method Summary collapse

Instance Method Details

#create_private_keyObject


39
40
41
42
# File 'lib/shhh/cipher_handler.rb', line 39

def create_private_key
  key = CREATE_CIPHER.call(Shhh::Configuration.property(:private_key_cipher)).random_key
  ::Base64.urlsafe_encode64(key)
end