Class: Lite::Encryption::Key
- Inherits:
-
Object
- Object
- Lite::Encryption::Key
- Defined in:
- lib/lite/encryption/key.rb
Class Method Summary collapse
Class Method Details
.generate_base ⇒ Object
14 15 16 |
# File 'lib/lite/encryption/key.rb', line 14 def generate_base SecureRandom.hex(LENGTH * 2) end |
.generate_salt ⇒ Object
18 19 20 |
# File 'lib/lite/encryption/key.rb', line 18 def generate_salt SecureRandom.random_bytes(LENGTH) end |