Module: SyrupPay::Jwa::RandomKeyGen

Included in:
ContentEncryption, ContentEncryptionKeyGenerator
Defined in:
lib/jose/jwa/enc/content_encryptionkey_generator.rb

Instance Method Summary collapse

Instance Method Details

#randomKey(length) ⇒ Object



6
7
8
# File 'lib/jose/jwa/enc/content_encryptionkey_generator.rb', line 6

def randomKey(length)
  SecureRandom.hex(length)
end