How to encrypt data at client side using eToken

915 views Asked by At

I am going to develop an application with Spring framework and JSP as follows:

1) When the client enters any text and presses encrypt button, the data should be encrypted at the client side, but that encryption should be done using eToken.

2) When the client uploads any file it should be stored in encrypted format in a database.

For that I searched on google but didn't find any helpful resources. We are using eToken that contains a key pair using the RSA algorithm. My problem is how to encrypt and decrypt data and files at the client side using eToken?

I am stuck here, please help me ASAP. Thanks.

1

There are 1 answers

4
Eugene Mayevski 'Callback On

Assuming that you want to do this via browser, you would need to have an ActiveX or Java applet, which will do the job. The task can not be accomplished using client-side javascript.

We developed similar solution in our SecureBlackbox product, though it works for signing at the moment (we couldn't imagine a real-life use case that would require encryption).

JFYI: To do encryption you don't need a private key but only a public key. Public key can be exported from the token to the computer.