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

New Developer
Posts: 5
Registered: ‎07-27-2011
My Device: Curve 9300
My Carrier: Vodafone

AES256 Encryption



I am looking for AES 256 Encryption for BlackBerry along with compatible C#.net implementation for the same.

Any helo appreciated.




Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: AES256 Encryption

There are a number of classes in the API beginning with AES that should provide what you need.  Have a look through these.  There are some useful samples included.  You will use AESKey to create your 256 bit key. 


My experience is that this will be compatible with the C# implementation, however you will need to make 100% sure that you implement in exactly the same way.  SO make sure you can "roundtrip" the same data on both platforms, with the same ciphered text, before you start trying to send data between the two applications.  If you see different results, look for variations in the implementation (e.g. Character conversion) before you assume the encryption is different - it isn't.