Class: Utils::EcbDetector

Inherits:
Object
  • Object
show all
Defined in:
lib/crypto-toolbox/utils/ecb_detector.rb

Instance Method Summary collapse

Instance Method Details

#detect(ciphers) ⇒ Object



3
4
5
6
# File 'lib/crypto-toolbox/utils/ecb_detector.rb', line 3

def detect(ciphers)
  result = ciphers.map.with_index{|c,i| detect_ecb_entry(c,i) }
  sanitize_result(result)
end