Class: CoBreak::List

Inherits:
Object
  • Object
show all
Defined in:
lib/cobreak/list_all.rb

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ List

all list formats and types



4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/cobreak/list_all.rb', line 4

def initialize(options)
  all = Array.new
  all << "Base64" << "Base32" << "Base16" << "Ascii85" << "Binary" << "Cesar"
  if (options.list.eql?("type"))
    puts "\nMode Cipher:"
    puts all
  end
  all.clear
  all << "MD4" << "MD5" << "SHA1" << "SHA224" << "SHA256" << "SHA384" << "SHA512" << "RIPEMD160"
  if (options.list.eql?("format"))
    puts "\nMode Cryptography:"
    puts all
  end
end