How to use elGamal encryption keys in Android?

247 Views Asked by At

I have the following keypair created with SJCL.js on node.js

var keyPair = sjcl.ecc.elGamal.generateKeys(sjcl.ecc.curves.c384);

I understand that I need somehow elGamal in Android as well. I want to implement a chat feature whereby every text chat to be sent will be encrypted with the public key of the receiver.

How can I use these elGamal public keys to perform an encryption (and the private key to decrypt respectively) in Android? So far, I have just found support for RSA keys.

0

There are 0 best solutions below