Re: [android-developers] help for encryption of sd card storage?

2011-04-11 Thread Xun Sun
Hi,

On Mon, Apr 11, 2011 at 2:47 PM, Hitendrasinh Gohil
 wrote:
> hi,
>
> I am downloading file from server and write this file to  sd card.now
> i want to encrypt this file so that only my application can access
> this file.
>
> i) if i can encrypt the file path only that can be access on
> decrypting it?

Are you looking into encrypting individual files? org.bouncycastle.*
have the crypto functions that you can use to encrypt a file.

You might also want to check this policy:

http://developer.android.com/reference/android/app/admin/DeviceAdminInfo.html#USES_ENCRYPTED_STORAGE
>
> which is the best encryption algorithem i can use for?

There are symmetric ones and asymmetric ones. You are likely more
interested in symmetric encryption, where the keys used for encryption
and decryption are the same. DES and ASE are the most popular ones.

>
>
> thankx
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



-- 
Thanks & regards
Xun Sun

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] help for encryption of sd card storage?

2011-04-11 Thread Marcin Orlowski
On 11 April 2011 08:47, Hitendrasinh Gohil wrote:


> i) if i can encrypt the file path only that can be access on
> decrypting it?
>

This is file path: "/sdcard/my-file.foo". This is just string. If you
encrypt it will look i.e. like "ne87hfi8xs4rkdjxbkvcv". How this is expected
to make *content* of your file safer?


> which is the best encryption algorithem i can use for?
>

There's no "best encryption algorithm". Choose that one that suits your
needs bests, considering complexity, strength, type and computing power
needed to encrypt your dataset in the acceptable time.


Regards,
Marcin Orlowski

*Tray Agenda * - keep you daily schedule handy...
WebnetMobile on *Facebook * and
*Twitter
*

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] help for encryption of sd card storage?

2011-04-10 Thread Hitendrasinh Gohil
hi,

I am downloading file from server and write this file to  sd card.now
i want to encrypt this file so that only my application can access
this file.

i) if i can encrypt the file path only that can be access on
decrypting it?

which is the best encryption algorithem i can use for?


thankx

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en