private void btnHashCheckDecodeBase64_Click(object sender, EventArgs e) { string base64 = txtHashCheckBase64.Text; translator.DecodeBase64(base64); FillConversionInfo(); txtHashCheckBase64.Text = base64; }
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); }
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; }