Exemple #1
0
        private void getChallengeButton_Click(object sender, EventArgs e)
        {
            var apdu = new Apdu(0, InstructionCode.GetChallenge, 0, 0, 8);

            Program.Log(string.Format("Send APDU with \"GET CHALLENGE\" command:\r\n\t{0}", apdu));

            var result = apdu.Execute(Reader);

            if (result == null)
            {
                Program.Log("No result.");
            }
            else
            {
                Program.Log(string.Format("Result: {0}", new SCResult(result)));
            }
        }