public String decrypt()
        {
            ResultAccumulator decryptionResultAccumulator = new DecryptResultAccumulator(input);

            railwaize(input.Length, fenceSize, decryptionResultAccumulator);
            return(decryptionResultAccumulator.GetResult());
        }
 public string decrypt()
 {
     int tableLength = CalculateTableLength(input.Length, key.Length);
     ResultAccumulator decryptionResultAccumulator = new DecryptResultAccumulator(input, tableLength);
     ExchangeColumns(tableLength, key, decryptionResultAccumulator);
     return decryptionResultAccumulator.GetResult();
 }
Esempio n. 3
0
        public string decrypt()
        {
            int tableLength = CalculateTableLength(input.Length, key.Length);
            ResultAccumulator decryptionResultAccumulator = new DecryptResultAccumulator(input, tableLength);

            ExchangeColumns(tableLength, key, decryptionResultAccumulator);
            return(decryptionResultAccumulator.GetResult());
        }
 public String decrypt()
 {
     ResultAccumulator decryptionResultAccumulator = new DecryptResultAccumulator(input);
     railwaize(input.Length, fenceSize, decryptionResultAccumulator);
     return decryptionResultAccumulator.GetResult();
 }