Ignore:
Timestamp:
Nov 29, 2009, 8:55:57 PM (12 years ago)
Author:
kohnen
Message:
  • added function changeSettings to interface IControlEncryption
  • added this function to all plugins using IControlEncryption (aes, des, sdes)
  • transposition-analyser works on all different transposition modes
  • minor changes at transposition plugin (optional keyword, etc)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/Transposition/Transposition.cs

    r913 r917  
    108108        }
    109109       
    110         [PropertyInfo(Direction.InputData, "Keyword", "keyword", "Keyword used for encryption", true, false, DisplayLevel.Beginner, QuickWatchFormat.Text, null)]
     110        [PropertyInfo(Direction.InputData, "Keyword", "keyword", "Keyword used for encryption", false, false, DisplayLevel.Beginner, QuickWatchFormat.Text, null)]
    111111        public string Keyword
    112112        {
     
    10381038        }
    10391039
     1040        public void changeSettings(string setting, object value)
     1041        {
     1042            if (setting.Equals("ReadIn")) settings.ReadIn = (int)value;
     1043            else if (setting.Equals("Permute")) settings.Permutation = (int)value;
     1044            else if (setting.Equals("ReadOut")) settings.ReadOut = (int)value;
     1045           
     1046        }
    10401047        # endregion
    10411048
     
    11211128
    11221129        #endregion
     1130
     1131        #region IControlEncryption Member
     1132
     1133
     1134        public void changeSettings(string setting, object value)
     1135        {
     1136            plugin.changeSettings(setting, value);
     1137        }
     1138
     1139        #endregion
    11231140    }
    11241141}
Note: See TracChangeset for help on using the changeset viewer.