How to Verify Mobile no and email id from Secure QR code of Aadhaar card

后端 未结 1 602
慢半拍i
慢半拍i 2020-12-07 04:11

Official Document for How to Read QR code data from Secure QR code of UIDAI Aadhaar card: https://uidai.gov.in/images/resource/User_manulal_QR_Code_15032019.pdf

Have

相关标签:
1条回答
  • 2020-12-07 04:36

    Just now got the solution, fetched exact mobile and email hash value from byte array

    first remove last 256 bytes from byte array then,

    if only mobile present then take last 32 bytes from byte array for mobile i.e. (array.length - 32 to array.length)

    else if only email present then take last 32 bytes from byte array for email i.e. (array.length - 32 to array.length)

    else if both email and mobile present then take last 32 bytes from byte array for mobile, take next last 32 bytes for email i.e. (mobile = array.length - 32 to array.length and email = array.length - 64 to array.length - 32)

    0 讨论(0)
提交回复
热议问题