Module: Sym::CipherHandler::ClassMethods

Defined in:
lib/sym/cipher_handler.rb

Instance Method Summary collapse

Instance Method Details

#create_private_keyObject



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

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