Module: Enigma
- Defined in:
- lib/enigma.rb,
lib/enigma/version.rb,
lib/enigma/verifier.rb
Overview
Enigma module provides functionality for encrypting and verifying passwords from scrypt to bcrypt.
Defined Under Namespace
Classes: EnigmaError, Verifier
Constant Summary collapse
- VERSION =
"0.1.0"
Class Attribute Summary collapse
-
.base64_salt_separator ⇒ Object
Returns the value of attribute base64_salt_separator.
-
.base64_signer_key ⇒ Object
Returns the value of attribute base64_signer_key.
-
.logger ⇒ Object
Returns the value of attribute logger.
-
.mem_cost ⇒ Object
Returns the value of attribute mem_cost.
-
.rounds ⇒ Object
Returns the value of attribute rounds.
Class Method Summary collapse
Class Attribute Details
.base64_salt_separator ⇒ Object
Returns the value of attribute base64_salt_separator.
9 10 11 |
# File 'lib/enigma.rb', line 9 def base64_salt_separator @base64_salt_separator end |
.base64_signer_key ⇒ Object
Returns the value of attribute base64_signer_key.
9 10 11 |
# File 'lib/enigma.rb', line 9 def base64_signer_key @base64_signer_key end |
.logger ⇒ Object
Returns the value of attribute logger.
9 10 11 |
# File 'lib/enigma.rb', line 9 def logger @logger end |
.mem_cost ⇒ Object
Returns the value of attribute mem_cost.
9 10 11 |
# File 'lib/enigma.rb', line 9 def mem_cost @mem_cost end |
.rounds ⇒ Object
Returns the value of attribute rounds.
9 10 11 |
# File 'lib/enigma.rb', line 9 def rounds @rounds end |
Class Method Details
.configure {|_self| ... } ⇒ Object
11 12 13 |
# File 'lib/enigma.rb', line 11 def configure yield self if block_given? end |