Re: [android-developers] File encryption using AES

2012-01-19 Thread chengdong diao
It seams like you encrypted the files as one file . maybe you can stop the encryption after one file is encrypted ,and restart the encryption when the followed file comes in. sorry for my poor english . 2012/1/17 chander mohan.c...@gmail.com Hi all, I am making a File encryption

[android-developers] File encryption using AES

2012-01-17 Thread chander
Hi all, I am making a File encryption application,i am using AES encryption for doing this. In this, i listed all files stored on the SD card and then i gave a checkbox infront of files. 1- User can select multiple files and on clicking ENCRYPT, these files will be encrypted in .enc format, i am

[android-developers] File encryption using AES

2011-12-26 Thread chander
hi all, i am trying the File encryption using AES on android but there is a weird exception occured everytime,i am not able to find out the solution for this exception. my code for encryption is: public void encrypt(File file,String aesKey) throws Exception { try

Re: [android-developers] File encryption using AES

2011-12-26 Thread Nikolay Elenkov
On Tue, Dec 27, 2011 at 3:03 PM, chander mohan.c...@gmail.com wrote: hi all, i am trying the File encryption using AES on android but there is a weird exception occured everytime,i am not able to find out the solution for this exception. my code for encryption is: What is the exception

[android-developers] File encryption using AES

2011-12-26 Thread chander
Hi all, I am trying the AES file encryption on android, but at the runtime it is giving one Exception,i am not able to find out any solution for this. My code for encryption is : i have already initialized the file as File file = new File(/mnt/sdcard/a.txt); public void encrypt(File

Re: [android-developers] File encryption using AES

2011-12-26 Thread Chander mourya
No that is not weird i edited my message.will i give you the Logcat messages.? On 12/27/11, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Tue, Dec 27, 2011 at 3:03 PM, chander mohan.c...@gmail.com wrote: hi all, i am trying the File encryption using AES on android but there is a

Re: [android-developers] File encryption using AES

2011-12-26 Thread Nikolay Elenkov
On Tue, Dec 27, 2011 at 3:11 PM, chander mohan.c...@gmail.com wrote: Exception is :    java.security.NoSuchAlgorithmException : SecretKeyFactory AES implementation not found. Please help and rectify the code or if possible give a working code for File encryption using AES. i don't know why

Re: [android-developers] File encryption using AES

2011-12-26 Thread Chander mourya
Thanks nikoley, i implemented DES algorithm to encrypt a String it worked fine in that but while encrypting a file i have to ask user an Encryption key so at that time i am asking for a key and then i am converting it to byte array. but this SecretFactory not working this time can you explain and

Re: [android-developers] File encryption using AES

2011-12-26 Thread Nikolay Elenkov
On Tue, Dec 27, 2011 at 3:31 PM, Chander mourya mohan.c...@gmail.com wrote: i implemented DES algorithm to encrypt a String it worked fine in that but while encrypting a file i have to ask user an Encryption key so at that time i am asking for a key and then i am converting it to byte array.

Re: [android-developers] File encryption using AES

2011-12-26 Thread Chander mourya
Thanks a lot nikolay, it worked when i used rawkey... Thanks again. On 12/27/11, Chander mourya mohan.c...@gmail.com wrote: Thanks nikoley, i implemented DES algorithm to encrypt a String it worked fine in that but while encrypting a file i have to ask user an Encryption key so at