Posted by pedron
(18.104.22.168) on October 06, 2016 at 08:51:34:
Hello, i'm having trouble understanding how the Encryption works for Basic Cards. In the Debit example we have this line of code:
Call AutoEncryption (0, "\Key0") : Call CheckSW1SW2()
It seems that the data we get from the user goes directly to the EEPROM, there is no direct encryption to it, i thought the objetive of encryption was to save the user input into the EEPROM, but encrypted.
The AutoEncryption from what i read in the documentes, only initialize the Encryption, it doesn't encrypt any data, if so, what it encrypts ? the Key ?
In the card code you just check the current active key, but if i'm just comparing 2 values that i alredy know of, how is that any different from comparing normal values like 2 strings variables.
Sorry, i'm really confused.