Module: Cryptools::Ciphers

Defined in:
lib/cryptools.rb

Class Method Summary collapse

Class Method Details

.single_byte_repeating_xor(bytes, bytes_k) ⇒ Object



79
80
81
# File 'lib/cryptools.rb', line 79

def single_byte_repeating_xor(bytes, bytes_k)
  bytes.map{|b| b ^ bytes_k.first}
end