public String encrypt()
        {
            ResultAccumulator encryptionResultAccumulator = new EncryptResultAccumulator(input);

            railwaize(input.Length, fenceSize, encryptionResultAccumulator);
            return(encryptionResultAccumulator.GetResult());
        }
 public string encrypt()
 {
     int tableLength = CalculateTableLength(input.Length, key.Length);
     ResultAccumulator encryptionResultAccumulator = new EncryptResultAccumulator(input, tableLength);
     ExchangeColumns(tableLength, key, encryptionResultAccumulator);
     return encryptionResultAccumulator.GetResult();
 }
示例#3
0
        public string encrypt()
        {
            int tableLength = CalculateTableLength(input.Length, key.Length);
            ResultAccumulator encryptionResultAccumulator = new EncryptResultAccumulator(input, tableLength);

            ExchangeColumns(tableLength, key, encryptionResultAccumulator);
            return(encryptionResultAccumulator.GetResult());
        }
 public String encrypt()
 {
     ResultAccumulator encryptionResultAccumulator = new EncryptResultAccumulator(input);
     railwaize(input.Length, fenceSize, encryptionResultAccumulator);
     return encryptionResultAccumulator.GetResult();
 }