[Dev] [Android] [Encryption] Encrypting/ decrypting the SD card from the application
Hi team, For a research me and my team is building an application to secure corporate data and we are using the SD card as the storage. We are trying to encrypt the SD card when exiting the application and decrypt when accessing the application. I tried to search a way to encrypt the SD card but couldn't find any hints. Please help if anyone of you have any idea on this Thank you and best regards -- *Tharindu Athukorala* Contact me: Mobile: +94710848793 Email: tharindu.athukor...@aiesec.net Skype: tharindu.athukorala ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [EMM]
Hi Milan, Thank you very much for the support. I will get back to you after trying this. Thank you again best regards On Sat, May 28, 2016 at 8:44 PM, Milan Perera wrote: > 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 < > tharindu.athukor...@aiesec.net> 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 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 < >>> tharindu.athukor...@aiesec.net> 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: tharindu.athukor...@aiesec.net >>>> >>>> Skype: tharindu.athukorala >>>> >>>> >>>> >>>> ___ >>>> Dev mailing list >>>> Dev@wso2.org >>>> 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: mi...@wso2.com | Web: www.wso2.com >>> <http://lk.linkedin.com/in/milanharinduperera> >>> >> >> >> >> -- >> >> *Tharindu Athukorala* >> >> >> Contact me: Mobile: +94710848793 >> >> Email: tharindu.athukor...@aiesec.net >> >> 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: mi...@wso2.com | Web: www.wso2.com > <http://lk.linkedin.com/in/milanharinduperera> > > -- *Tharindu Athukorala* Contact me: Mobile: +94710848793 Email: tharindu.athukor...@aiesec.net Skype: tharindu.athukorala ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [EMM]
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 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 < > tharindu.athukor...@aiesec.net> 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: tharindu.athukor...@aiesec.net >> >> Skype: tharindu.athukorala >> >> >> >> ___ >> Dev mailing list >> Dev@wso2.org >> 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: mi...@wso2.com | Web: www.wso2.com > <http://lk.linkedin.com/in/milanharinduperera> > -- *Tharindu Athukorala* Contact me: Mobile: +94710848793 Email: tharindu.athukor...@aiesec.net Skype: tharindu.athukorala ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [EMM]
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: tharindu.athukor...@aiesec.net Skype: tharindu.athukorala ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev