Yubico / ykneo-openpgp

OpenPGP applet for the YubiKey NEO
https://developers.yubico.com/ykneo-openpgp/
GNU General Public License v2.0
215 stars 67 forks source link

Java card communication example/test #38

Open atok opened 8 years ago

atok commented 8 years ago

Yubikey NEO was my first contact with Smart Cards. I bought it, registered U2F wherever it's accepted and was looking for a way to encrypt some data with it. But incorporating this functionality in a Java application is a surprisingly hard task.

The tests were of some help but they don't get you very far. The general practice seems to be to call gpg and let it do the job.

Is there a chance you could include a full cycle example: encrypt the data with Java (bouncy castle?) and then decrypt it with the Yubikey NEO using javax.smartcardio APIs ?

Here is the result of me trying to do it: http://stackoverflow.com/questions/33841380/pgp-data-encryption-for-use-with-yubico-openpgp-smart-card