This issue was reported by user Unaibox in Sep. 2024:
Awesome post!!!, it's helping me a lot to move forward with technology. I have a doubt, I am using EncryptedSunActivity to use uid x count + cmac and my goal is to encrypt it with a key (23450000000000000000000000000000000000000ABC).
For this in Constants (Android Studio) I indicated APPLICATION_KEY_2 = Utils.hexStringToByteArray(‘234500000000000000000000000000000000000000000ABC’);
And in the verification backend (config.py) "MASTER_KEY = binascii.unhexlify(‘234500000000000000000000000000000000000000000ABC’)", but it doesn't work.
However, if in the backend I put "MASTER_KEY = binascii.unhexlify(‘00000000000000000000000000000000’)" it allows me to access without problems, that is, the Android APP is not applying the key and I have followed the tutorial:
sdmSettings.sdmMetaReadPerm = ACCESS_KEY2;
sdmSettings.sdmFileReadPerm = ACCESS_KEY2
Hope you can help me to figure out what's happening
Thanks and Regards!
Additional comment by "Unaibox":
Reviewing the post, I see that I have to use the option for custom keys, but the NFC developer backend is unable to decrypt it even when specifying MASTER_KEY = binascii.unhexlify("A4000000000000000000000000000000"), which is supposedly the key with which everything has been encrypted
This issue was reported by user Unaibox in Sep. 2024:
Awesome post!!!, it's helping me a lot to move forward with technology. I have a doubt, I am using EncryptedSunActivity to use uid x count + cmac and my goal is to encrypt it with a key (
23450000000000000000000000000000000000000ABC).For this in Constants (Android Studio) I indicated
APPLICATION_KEY_2 = Utils.hexStringToByteArray(‘234500000000000000000000000000000000000000000ABC’);And in the verification backend (config.py)
"MASTER_KEY = binascii.unhexlify(‘234500000000000000000000000000000000000000000ABC’)", but it doesn't work.However, if in the backend I put
"MASTER_KEY = binascii.unhexlify(‘00000000000000000000000000000000’)"it allows me to access without problems, that is, the Android APP is not applying the key and I have followed the tutorial:Hope you can help me to figure out what's happening
Thanks and Regards!
Additional comment by "Unaibox":
Reviewing the post, I see that I have to use the option for custom keys, but the NFC developer backend is unable to decrypt it even when specifying
MASTER_KEY = binascii.unhexlify("A4000000000000000000000000000000"), which is supposedly the key with which everything has been encrypted