Ignore:
Timestamp:
Jul 14, 2009, 11:09:21 AM (13 years ago)
Author:
Danail Vazov
Message:

Internal methods for analysing Caesar cipher added to the Vigener Analyser plug-in. A Setting for choosing the language to analyse was also added. This setting is used by the chi-square statistic in order to assert a Null hypothesis.

Changed the key word input of the Vigenere plug-in. Now it is just a normal string input.

Location:
trunk/CrypPlugins/Vigenere
Files:
2 edited

Legend:

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

    r339 r388  
    226226        private string inputString;
    227227        private string outputString;
    228         //private int[] shiftValue;
     228        private char[] keyword;
    229229        private enum VigenereMode { encrypt, decrypt };
    230230        private List<CryptoolStream> listCryptoolStreamsOut = new List<CryptoolStream>();
     
    311311        }
    312312        [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; }
     313        public string ShiftValue
     314        {
     315            get { return settings.ShiftChar; }
    316316            set
    317317            {
    318                 if (value != settings.shiftValue)
     318                if (value != settings.ShiftChar)
    319319                {
    320                     settings.shiftValue=value;
     320                    settings.ShiftChar=value;
    321321                    OnPropertyChanged("ShiftValue");
    322322
  • trunk/CrypPlugins/Vigenere/VigenereSettings.cs

    r339 r388  
    278278        private string alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
    279279        private char[] shiftChar = { 'B', 'C', 'D' };
    280         public int[] shiftValue = { 1, 2, 3 };
     280        private int[] shiftValue = { 1, 2, 3 };
    281281        private UnknownSymbolHandlingMode unknowSymbolHandling = UnknownSymbolHandlingMode.Ignore;
    282282        private int caseSensitiveAlphabet = 0; //0=case insensitive, 1 = case sensitive
Note: See TracChangeset for help on using the changeset viewer.