[android-developers] RSA encrypt on android

2013-01-10 Thread Ines
i have some problems when i try to encrypt a string with a public key stored in res/raw thesis the encrypt method code: public static byte[] encryptRSA(Context mContext, byte[] message) throws Exception { // reads the public key stored in a file InputStream is =

Re: [android-developers] RSA encrypt on android

2013-01-10 Thread Belhouchet Ines
anyone can help me ??? 2013/1/10, Ines belhouchet.i...@gmail.com: i have some problems when i try to encrypt a string with a public key stored in res/raw thesis the encrypt method code: public static byte[] encryptRSA(Context mContext, byte[] message) throws Exception { // reads

Re: [android-developers] RSA encrypt on android

2013-01-10 Thread Nikolay Elenkov
On Thu, Jan 10, 2013 at 8:31 PM, Ines belhouchet.i...@gmail.com wrote: i have some problems when i try to encrypt a string with a public key stored in res/raw thesis the encrypt method code: // converts the String to a PublicKey instance byte[] keyBytes =

Re: [android-developers] RSA encrypt on android

2013-01-10 Thread Belhouchet Ines
ok thanks Nikolay ,i'll try the HTTPS ,but don't have a great idea about this approach HTTPS,can you please give me some examples or tutorials. thanks a lot. 2013/1/10, Nikolay Elenkov nikolay.elen...@gmail.com: On Thu, Jan 10, 2013 at 8:31 PM, Ines belhouchet.i...@gmail.com wrote: i have some

Re: [android-developers] RSA encrypt on android

2013-01-10 Thread Lew
Ines wrote: ok thanks Nikolay ,i'll [sic] try the HTTPS ,but don't have a great idea about this approach HTTPS,can you please give me some examples or tutorials. http://lmgtfy.com/?q=Android+communicate+securely+with+your+server+use+standard+HTTPS+SSL -- Lew -- You received this