Hi Tharindu,

AFAIK, Android SDK does not have a specific API to encrypt files or
derectories. However you'll be able to use native java cryptography
APIs[1] to encrypt files and folder as suggested in [2].

[1]
https://docs.oracle.com/javase/8/docs/technotes/guides/security/crypto/CryptoSpec.html
[2] http://stackoverflow.com/a/10275913

Regards,

On Saturday, 28 May 2016, Tharindu Athukorala <
[email protected]> wrote:

> Hi Milan,
> Thank you soo much for the reply. In our application we are trying find a
> solution for COPE (Corporate Owned Personally Enabled) devices. We thought
> to use SD cards and use that SD card to store corporate data and encrypt
> that SD card. Is there any possibility to do that using  the android
> encryption ?
>
> On Sat, May 28, 2016 at 8:12 PM, Milan Perera <[email protected]
> <javascript:_e(%7B%7D,'cvml','[email protected]');>> wrote:
>
>> Hi Tharindu,
>>
>> In WSO2 EMM, we have used the native Android encryption capability via a
>> device policy manager [1] in order to encrypt the storage (only includes
>> the internal storage).
>> Once you have given the device administration privilege to the
>> application, you will be able to invoke this function[2] without any issue.
>>
>> However in [2], it is specifically stated that* it does not support
>> external storage encryption*.
>>
>> [1]
>> https://developer.android.com/reference/android/app/admin/DevicePolicyManager.htm
>> [2]
>> https://developer.android.com/reference/android/app/admin/DevicePolicyManager.html#setStorageEncryption%28android.content.ComponentName,%20boolean%29
>>
>> Regards,
>>
>> On Sat, May 28, 2016 at 2:07 PM, Tharindu Athukorala <
>> [email protected]
>> <javascript:_e(%7B%7D,'cvml','[email protected]');>> wrote:
>>
>>> Hi all,
>>> I'm Tharindu from SLIIT an undergraduate of cyber security. I'm trying
>>> to encrypt and decrypt files from the SD card using AES 256 in android for
>>> the research work. In WSO2 EMM system you have used a wrapper concept and
>>> can anyone tell me how this wrapper concept works and what is the
>>> encryption mechanism you have used ?
>>>
>>> Thank you and best regards,
>>>
>>> --
>>>
>>> *Tharindu Athukorala*
>>>
>>>
>>> Contact me: Mobile: +94710848793
>>>
>>> Email: [email protected]
>>>
>>> Skype: tharindu.athukorala
>>>
>>>
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected] <javascript:_e(%7B%7D,'cvml','[email protected]');>
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Milan Perera *| Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 77 309 7088 | Work: +94 11 214 5345
>> Email: [email protected] <javascript:_e(%7B%7D,'cvml','[email protected]');>
>> <javascript:_e(%7B%7D,'cvml','[email protected]');> | Web: www.wso2.com
>> <http://lk.linkedin.com/in/milanharinduperera>
>>
>
>
>
> --
>
> *Tharindu Athukorala*
>
>
> Contact me: Mobile: +94710848793
>
> Email: [email protected]
>
> Skype: tharindu.athukorala
>
>
>

-- 
*Milan Perera *| Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 77 309 7088 | Work: +94 11 214 5345
Email: [email protected] <[email protected]> | Web: www.wso2.com
<http://lk.linkedin.com/in/milanharinduperera>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to