Exemple #1
0
        public HashCheckForm()
        {
            InitializeComponent();

            cbHashType.Items.AddRange(Helpers.GetEnumDescriptions<HashType>());
            cbHashType.SelectedIndex = (int)HashType.SHA1;

            hashCheck = new HashCheck();
            hashCheck.FileCheckProgressChanged += fileCheck_FileCheckProgressChanged;
            hashCheck.FileCheckCompleted += fileCheck_FileCheckCompleted;

            translator = new Translator();
        }
Exemple #2
0
 public static bool Test()
 {
     bool result = true;
     Translator translator = new Translator();
     string text = Helpers.GetAllCharacters();
     translator.EncodeText(text);
     translator.DecodeBinary(translator.BinaryText);
     result &= translator.Text == text;
     translator.DecodeHex(translator.HexadecimalText);
     result &= translator.Text == text;
     //translator.DecodeASCII(translator.ASCIIText);
     //result &= translator.Text == text;
     translator.DecodeBase64(translator.Base64);
     result &= translator.Text == text;
     return result;
 }