- Generate private key
openssl genrsa -out privatekey.pem 1024
Generating RSA private key, 1024 bit long modulus (2 primes)
......................+++++
....................+++++
e is 65537 (0x010001)
openssl genrsa -out privatekey.pem 1024
Generating RSA private key, 1024 bit long modulus (2 primes)
......................+++++
....................+++++
e is 65537 (0x010001)
Cheef's Grand APDU List Smartcard Selected Information APDU list | |
Reference: http://web.archive.org/web/20090630004017/http://cheef.ru/docs/HowTo/APDU.info | |
#------------+------------------------+------------------------+----------------------+--------------------------------+ | |
|ClaIns P1 P2|Lc Send Data |Le Recv Data | Specification | Description | | |
+------------+------------------------+------------------------+----------------------+--------------------------------+ | |
| 04 | ISO 7816-9 6.3 | DEACTIVATE FILE | | |
| A0 04 00 00 00 | 3GPP TS 11.11 | INVALIDATE | | |
| A0 04 00 00 00 | SAGEM SCT U34 6.15 | INVALIDATE | | |
+------------+------------------------+------------------------+----------------------+--------------------------------+ |
Cheef's Grand APDU List Smartcard Selected Information APDU list | |
Reference: http://web.archive.org/web/20090630004017/http://cheef.ru/docs/HowTo/APDU.info | |
and this : https://neapay.com/post/read-smart-card-chip-data-with-apdu-commands-iso-7816_76.html | |
response can be found here : https://www.eftlab.com/knowledge-base/complete-list-of-apdu-responses/ | |
#------------+------------------------+------------------------+----------------------+--------------------------------+ | |
|ClaIns P1 P2|Lc Send Data |Le Recv Data | Specification | Description | | |
+------------+------------------------+------------------------+----------------------+--------------------------------+ | |
| 04 | ISO 7816-9 6.3 | DEACTIVATE FILE | | |
| A0 04 00 00 00 | 3GPP TS 11.11 | INVALIDATE | |
import javax.crypto.Cipher; | |
import javax.crypto.spec.SecretKeySpec; | |
public class EncryptSample { | |
private static final String KEY = "AB1C11111111111AAAAAAADDDDD11111"; | |
private static final int PIN_LENGTH = 6; | |
public static void main(String[] args) throws Exception { | |
{ | |
"name": "node-webhook-example", | |
"version": "1.0.0", | |
"description": "Webhook Example Node Server for Payant.ng", | |
"main": "webhook.js", | |
"scripts": { | |
"start": "node webhook.js" | |
}, | |
"author": "Payant Support <[email protected]>", | |
"license": "ISC", |