I have heard good things about the emerging "FIDO U2F" standard. I am especially interested in having a JavaScript API for cryptographic functions that I can access through a plug-in in a browser.
However, so far all my efforts to obtaining a physical hardware token supporting the FIDO U2F specs for testing were without success.
What I would be particularly interested in, is decrypting short messages with the app_id
specific private key stored in the device through a JavaScript call.
While the "FIDO U2F" Javascript API draft doesn't mention a method for this, I wonder whether I could use a simple sign request
and simply provide the data to be decrypted as websafe-base64-encoded challenge
?
In my understanding, the response returned from the device would be the decrypted challenge.
Am I correct with this or do I misunderstand the way challenge/response is implemented here?