'How to create mobile number hash from Aadhaar Paperless Offline e-kyc PHP

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



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source