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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Contributor
mail2bhramar
Posts: 14
Registered: ‎04-27-2011
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
Please use plain text.
Developer
simon_hain
Posts: 13,796
Registered: ‎07-29-2008
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
Please use plain text.