Sha256: 46622834073c403e0d4d0e1e3a0ae4eb6b5ce5e0e3f7ddb82d144f3eda129d0c
Contents?: true
Size: 356 Bytes
Versions: 3
Compression:
Stored size: 356 Bytes
Contents
require 'base64' require 'sym/crypt/cipher_handler' module Sym module Crypt module Extensions module ClassMethods def create_private_key key = Sym::Crypt::NEW_CIPHER_PROC.call(Sym::Crypt::Configuration.property(:private_key_cipher)).random_key ::Base64.urlsafe_encode64(key) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sym-crypt-1.2.0 | lib/sym/crypt/extensions/class_methods.rb |
sym-crypt-1.1.1 | lib/sym/crypt/extensions/class_methods.rb |
sym-crypt-1.0.0 | lib/sym/crypt/extensions/class_methods.rb |