Josan88 / mykad

MIT License
0 stars 0 forks source link
mykad

MyKad Reader

This code reads the MyKad identification card using a smart card reader. It selects the JPN (Jabatan Pendaftaran Negara, National Registration Department) application and reads data from various files, including the user's photograph.

Prerequisites

To use this code, you will need the following:

Usage

This program sends apdu commands to mykad to obtain data from mykad. Different apdu command is needed to read different jpn files. The info read is then stored in json files.

Steps

  1. Extract the zip file.
  2. Insert a MyKad into the smart card reader.
  3. Run mykad.exe in /dist/.

image

  1. The program is started and running in background (mykad.exe).
  2. The script will automatically detect the insertion of the card, select the JPN application, and read data from various files, including the user's photograph.
  3. After reading, data is stored in 2 json file.
  4. The user's photograph will be saved as a JPEG file named "photo.jpg" in the current directory.
  5. View data in index.php.
  6. If user wants to read another myKAD, remove the inserted card and insert another myKAD.

Future suggestion and improvement

Extract biometric template from MyKAD and use it for biometric verification (Decryption is needed).

Guidelines for Securing MyKAD Enhanced Biometric Access (EBA) Ecosystem