Exemplo n.º 1
0
        private void btnHashCheckDecodeBase64_Click(object sender, EventArgs e)
        {
            string base64 = txtHashCheckBase64.Text;

            translator.DecodeBase64(base64);
            FillConversionInfo();
            txtHashCheckBase64.Text = base64;
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
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;
 }