Example #1
0
        private byte[] GetUserData()
        {
            if (txtUIData.Text.Length == 0)
            {
                return(new byte[0]);
            }

            if (chkAsciiData.Checked)
            {
                return(Encoding.GetEncoding("gb2312").GetBytes(txtUIData.Text));
            }
            else
            {
                return(HelperTools.SplitHexText(txtUIData.Text));
            }
        }
Example #2
0
 public byte[] GetAuthenticationKeys()
 {
     return(HelperTools.SplitHexText(txtAuthKeys.Text));
 }