Example #1
0
 public BreakRepeatingKeyXOR(IGetHammingDistance hammingDistance, ISingleByteXORCipher xorCipher, IFixedXOR fixedXOR, IConvertHex convertor)
 {
     _hammingDistance = hammingDistance;
     _xorCipher       = xorCipher;
     _fixedXOR        = fixedXOR;
     _convertor       = convertor;
 }
Example #2
0
 public virtual void SetUp()
 {
     _fixedXOR = new FixedXOR();
 }
 public SingleByteXORCipher(IFixedXOR fixedXOR)
 {
     _fixedXOR = fixedXOR;
     _scores   = ConstructSoreingDictionary();
 }
Example #4
0
 public RepeatingKeyXOR(IFixedXOR fixedXOR)
 {
     _fixedXOR = fixedXOR;
 }