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

Class Method Summary collapse

Class Attribute Details

.base64_salt_separatorObject

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_keyObject

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

.loggerObject

Returns the value of attribute logger.



9
10
11
# File 'lib/enigma.rb', line 9

def logger
  @logger
end

.mem_costObject

Returns the value of attribute mem_cost.



9
10
11
# File 'lib/enigma.rb', line 9

def mem_cost
  @mem_cost
end

.roundsObject

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

Yields:

  • (_self)

Yield Parameters:

  • _self (Enigma)

    the object that the method was called on



11
12
13
# File 'lib/enigma.rb', line 11

def configure
  yield self if block_given?
end