Thursday, June 20, 2013

BB10 cryptography sample application(AES)

Here is the sample working application for BB10. I have used BlackBerry specific API's to encrypt and decrypt.  I have implemented AES and Triple DES algorithms.

Implementing Cryptographic algorithms using API's is easy as we need to use api's directly. But tricky part is conversion of QString to unsigned char*. I struggled a lot and googled , but I could not get the solution. Recently I have seen one sample for encrypting password using md5. In that example, I found the conversion of Qstring to unsigned char * and vice-verse.


So providing here complete working example which may help others.

For Triple Des crypto sample BB10 algorithm refer this link.

Popular Posts