Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Highlighted
Contributor
Posts: 14
Registered: ‎04-27-2011
My Device: 8900
My Carrier: Idea

Programmatically encrypt attachment downloaded from specific Mail id.

Hi friends. I want to encrypt the download files from the mail programmatically. I did not have any idea to do this.

So give me some idea or code sample to do the same.

 

Thanks in Advance.

Thesimple
Developer
Posts: 16,992
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Programmatically encrypt attachment downloaded from specific Mail id.

you have the attachment as a byte array?
then you choose an encryption algo, for example AES, and use the appropriate engine, like
http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/crypto/AESEncryptorEngine.html... int, byte[], int)
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter