hwcrypto / hwcrypto.js

Browser JavaScript library for working with hardware tokens
https://hwcrypto.github.io
MIT License
157 stars 47 forks source link

get details of the Id card #43

Closed wider2 closed 4 years ago

wider2 commented 6 years ago

is it possible with help of hwcrypto to allow javascript get response from ID Card: name, username, email and so on ?

mihkels commented 6 years ago

You could use ASN.1 javascript lib to achieve this same result. Meaning you request ID-card public certificate and decode with ASN.1 decoder.

ONe such lib is: https://github.com/indutny/asn1.js?utm_source=recordnotfound.com

weilah commented 5 years ago

Did you have any luck trying to get the ID Card details using hwcrypto?