Method: Cipher#initialize
- Defined in:
- lib/cipher.rb
#initialize(args = {}) ⇒ Cipher
Returns a new instance of Cipher.
12 13 14 15 16 17 |
# File 'lib/cipher.rb', line 12 def initialize(args = {}) @key_length = args[:key_length] || 16 @section_length = args[:section_length] || 4 @seperator = args[:seperator] || '-' @hasher = args[:hasher] || 'sha1' end |