lib/crapto: Introduce 2 new attacks on XOR ciphers
authorPhilippe Pepos Petitclerc <ppeposp@gmail.com>
Sat, 14 May 2016 01:20:41 +0000 (21:20 -0400)
committerPhilippe Pepos Petitclerc <ppeposp@gmail.com>
Tue, 24 May 2016 19:51:49 +0000 (15:51 -0400)
commitc876a2c009bcf3b06b8348d98f7ea85cd66fb600
tree2a7016baeaed539e8bbeba1c12d60da642c6511b
parent4f15587360de29ec9e93a610b3242ff0bee4424b
lib/crapto: Introduce 2 new attacks on XOR ciphers

Introduced an attack on Single-byte XOR cipher based on english frequency analysis
Introduced an attack on Repeated-key XOR cipher based on hamming distances and Single-byte XOR attacks.

Signed-off-by: Philippe Pepos Petitclerc <ppeposp@gmail.com>
lib/crapto/crapto.nit
lib/crapto/examples/repeating_key_xor_cipher.txt [new file with mode: 0644]
lib/crapto/examples/repeating_key_xor_solve.nit [new file with mode: 0644]
lib/crapto/xor.nit [new file with mode: 0644]
tests/niti.skip
tests/nitvm.skip
tests/repeating_key_xor_solve.args [new file with mode: 0644]
tests/sav/repeating_key_xor_solve.res [new file with mode: 0644]
tests/sav/repeating_key_xor_solve_args1.res [new file with mode: 0644]