Example #1
0
            void SendDecrementCommand(ISmartCardReader smartCardReader, int value, byte blockNumber)
            {
                var    decrementCommand = new DecrementCommand();
                string input            = decrementCommand.GetApdu(blockNumber, value);
                string output           = ReaderHelper.SendCommand(smartCardReader, input);

                Console.WriteLine("Input: ", input, "\n Output: ", output);
            }
Example #2
0
            private void LoadKeyCommand(ISmartCardReader smartCardReader, byte keySlot, LoadKeyCommand.KeyType keyType, LoadKeyCommand.Persistence persistence, LoadKeyCommand.Transmission transmission, LoadKeyCommand.KeyLength keyLength, string key)
            {
                var loadKeyCommand = new Readers.AViatoR.Components.LoadKeyCommand();

                string input  = loadKeyCommand.GetApdu(keySlot, keyType, persistence, transmission, keyLength, key);
                string output = ReaderHelper.SendCommand(smartCardReader, input);

                //ConsoleWriter.Instance.PrintCommand(description + key, input, output);
                Console.WriteLine($"input {input}  Load Key Output:  {output}  Key: {key}");
                MifareOutput = output;
                MifareAPDU   = input;
            }