MIDlet Encryption with Public Key

View: New views
1 Messages — Rating Filter:   Alert me  

MIDlet Encryption with Public Key

by Jeng Yu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Gurus!

Please forgive me for my question. I'm very new to
BC for J2ME and this list. I've done quite a bit of
J2ME apps, but not crypto enabled ones. I have some
questions about using public key to encrypt data in
a MIDlet. Please point me to the right doc. I've
googled and found nothing precise.

Here's the deal. I'm working on MIDlet that needs to
encrypt a form field using the public key of a
third-party that will process the form when sent.
Using
symmetric key cipher is not an option. RSA encryption
is the required option.

I to want to hard code the public key into a variable
in the MIDlet.

My questions:

1. In what format should I receive the public key from
   the third-party so I can include in my MIDlet
   cut-and-paste?
   Should it be as a certificate, or plain public key?

2. If I get it as a certificate, which includes other
   components, what API's are there in BC to extract
   just the public key part so I can use it to encrypt

   my data?

I am using Sun's Wireless Tool Kit (WTK2.5.2) for the
development.

Thanks for your answers. I look forward to them.

Jeng Yu





     

LightInTheBox - Buy quality products at wholesale price!