how to solve the mobile number hash from Aadhaar Paperless Offline e-kyc PHP. I have the mobile number. but don't understand the logic.
Mobile Number: – This is represented as a hash with following logic.
Hashing logic for Mobile Number : Sha256(Sha256(Mobile+SharePhrase))*number of times last digit of Aadhaar number (Ref ID field contains last 4 digits).
Example : Mobile: 1234567890 Aadhaar Number:XXXX XXXX 3632 Passcode : Lock@487 Hash: Sha256(Sha256(1234567890Lock@487))*2 In case of Aadhaar number ends with Zero we will hashed one time. the full information available here https://uidai.gov.in/ecosystem/authentication-devices-documents/about-aadhaar-paperless-offline-e-kyc.html can anyone help me
Here is the example:
Aadhaar Number:XXXX XXXX 3632
Mobile Number: 1234567890
XML Password: 4567
If last digit of Aadhaar number is 0 OR 1
Sha256(12345678904567)
If last digit of Aadhaar number is 2 (this case)
Sha256(Sha256(12345678904567))
If last digit of Aadhaar number is 3
Sha256(Sha256(Sha256(12345678904567)))
If last digit of Aadhaar number is 4
Sha256(Sha256(Sha256(Sha256(12345678904567))))
Finally, compare XML "m=" value with Sha256 result value, you can only check if both are same or not.