Search code examples
mobilejava-mecryptographysmsbouncycastle

Public key encrypted SMS J2ME


I need to make an SMS application which encrypt the message going trough it. I'm planning to add these features to application,

1)Generate key-pairs.
2)Send the public key to other party as a SMS.
3)Encrypt the message using a given publickey.
4)Decrypt the received message using a privatekey.
5)Manage more than one key.

Please let me know if there is any library(prefer open-source) that maybe help to do this.


Solution

  • After downloading lcrypto-j2me-147.tar.gz (latest version as of today) from here, we can use the compiled binaries at zips folder: cldc_bccore_classes.zip is 1.7MB, cldc_bcpg_classes.zip is 260.5KB and cldc_bcpkix_classes.zip is 370.5KB.

    There is a good example of how to use bccore here, but you should try to use only bcpg (which is the smallest) as shown here.