Ignore:
Timestamp:
Jun 4, 2009, 2:49:11 PM (13 years ago)
Author:
Danail Vazov
Message:

Added a custom Input of type integer Array. The input is used as an outside keyword input. Connected to the VigenereAnalyser plug-in this input will set the keyword of the cipher to whatever the VigenereAnalyser has calculated.

Location:
trunk/CrypPlugins/Vigenere
Files:
2 edited

Legend:

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

    r213 r339  
    226226        private string inputString;
    227227        private string outputString;
     228        //private int[] shiftValue;
    228229        private enum VigenereMode { encrypt, decrypt };
    229230        private List<CryptoolStream> listCryptoolStreamsOut = new List<CryptoolStream>();
     
    306307                    ((VigenereSettings)this.settings).AlphabetSymbols = value;
    307308                    OnPropertyChanged("InputAlphabet");
     309                }
     310            }
     311        }
     312        [PropertyInfo(Direction.Input, "String", "Keyword as derived by the VigenereAnalyser", "", false, false, DisplayLevel.Beginner, QuickWatchFormat.Text, null)]
     313        public int[] ShiftValue
     314        {
     315            get { return settings.shiftValue; }
     316            set
     317            {
     318                if (value != settings.shiftValue)
     319                {
     320                    settings.shiftValue=value;
     321                    OnPropertyChanged("ShiftValue");
     322
    308323                }
    309324            }
  • trunk/CrypPlugins/Vigenere/VigenereSettings.cs

    r4 r339  
    278278        private string alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
    279279        private char[] shiftChar = { 'B', 'C', 'D' };
    280         private int[] shiftValue = { 1, 2, 3 };
     280        public int[] shiftValue = { 1, 2, 3 };
    281281        private UnknownSymbolHandlingMode unknowSymbolHandling = UnknownSymbolHandlingMode.Ignore;
    282282        private int caseSensitiveAlphabet = 0; //0=case insensitive, 1 = case sensitive
     
    331331        /// </summary>
    332332        /// <param name="offset"></param>
    333         private void setKeyByValue(int[] offset)
     333        public void setKeyByValue(int[] offset)
    334334        {
    335335            hasChanges = true;
Note: See TracChangeset for help on using the changeset viewer.