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 thi

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 : > On Thu, Jan 10, 2013 at 8:31 PM, Ines wrote: >> i have some problems when i try to encrypt a string with a

Re: [android-developers] RSA encrypt on android

2013-01-10 Thread Nikolay Elenkov
On Thu, Jan 10, 2013 at 8:31 PM, Ines 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 = Base64.decode(keyString.getBytes("utf-8"),

Re: [android-developers] RSA encrypt on android

2013-01-10 Thread Belhouchet Ines
anyone can help me ??? 2013/1/10, 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 s

[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 = mContext.ge