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

Native Development

Reply
Developer
hemant_sain
Posts: 179
Registered: ‎12-09-2011
My Device: 9360, BB10
My Carrier: Aircel

AES Encryption and decryption in BB10 cascade.

Hi all

 

I want to do the AES encryption and decryption in my project with a special key.

 

So please provide some suggestion or sample code for this in cascade.

 

Thanks in advance.

Please use plain text.
Developer
BBSJdev
Posts: 6,089
Registered: ‎07-05-2012
My Device: Playbook, Z10 LE, Dev Alpha C
My Carrier: Orange

Re: AES Encryption and decryption in BB10 cascade.

Read this...

 

http://developer.blackberry.com/native/reference/bb10/com.qnx.doc.crypto/topic/c_sb_overview.html


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.
Developer
Anand04
Posts: 95
Registered: ‎06-05-2012
My Device: Developer
My Carrier: Developer

Re: AES Encryption and decryption in BB10 cascade.

Hi BBSJdev,

is there any sample code to implement this?
please help me on this, it is very urgent for me.

Many Thanks,
Anand
Please use plain text.
Developer
BBSJdev
Posts: 6,089
Registered: ‎07-05-2012
My Device: Playbook, Z10 LE, Dev Alpha C
My Carrier: Orange

Re: AES Encryption and decryption in BB10 cascade.

[ Edited ]

I struggled myself to find a good example, security by its very nature is not something most people want to expose their code on, myself included. :smileyhappy:

 

However there was a thread a while back with two developers struggling to get it working and it is a good starting point for writing your code...

 

http://supportforums.blackberry.com/t5/Native-Development/AES-encryption-decryption-is-not-working-p...

 

 


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.
Developer
Anand04
Posts: 95
Registered: ‎06-05-2012
My Device: Developer
My Carrier: Developer

Re: AES Encryption and decryption in BB10 cascade.

[ Edited ]

:smileywink:

 

Thanks

 

Thanks

 

Please use plain text.
Developer
BBSJdev
Posts: 6,089
Registered: ‎07-05-2012
My Device: Playbook, Z10 LE, Dev Alpha C
My Carrier: Orange

Re: AES Encryption and decryption in BB10 cascade.

[ Edited ]

I'll admit it was a starting point for me and I haven't quite finished my own implementation yet to my own satisfaction.

Encryption is not something you want to rush or screw up. :smileyhappy:

 

At the moment the code I've written is working and resides in my cookbook and will be in my app in the next version.

 


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.
Developer
Anand04
Posts: 95
Registered: ‎06-05-2012
My Device: Developer
My Carrier: Developer

Re: AES Encryption and decryption in BB10 cascade.

Many Thanks...
Please use plain text.
Developer
BBSJdev
Posts: 6,089
Registered: ‎07-05-2012
My Device: Playbook, Z10 LE, Dev Alpha C
My Carrier: Orange

Re: AES Encryption and decryption in BB10 cascade.

[ Edited ]

You're welcome.

 

I assume you know that you will require certification if you use encryption in your app, I would advise applying for it now if you haven't already.

 

Being urgent and all. :smileywink: 

 


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.
Developer
Anand04
Posts: 95
Registered: ‎06-05-2012
My Device: Developer
My Carrier: Developer

Re: AES Encryption and decryption in BB10 cascade.

Hi BBSJdev,

I am new in this, i don't know the about certification, please let me know the steps to get certification?

Thanks
Please use plain text.
Developer
BBSJdev
Posts: 6,089
Registered: ‎07-05-2012
My Device: Playbook, Z10 LE, Dev Alpha C
My Carrier: Orange

Re: AES Encryption and decryption in BB10 cascade.

[ Edited ]

Sorry to do that to you. :smileyhappy:

 

Ok, well hunting around in the BlackBerry documentation won't help you, try searching for app developer + encryption in google and look at the Apple or Android hits.

 

Reading it all though boils it down to this, if you want to sell or export your app in the US using any form of encryption even if it uses libraries that have already been certified by another company then you will need to fill in the following form;

 

https://snapr.bis.doc.gov/registration/Register.do

 

Apparently it used to be a lot harder requiring forms and posting by mail but now all it requires is to fill in this online form.

There are plenty of examples on the web on how to do this for an App developer (Company or individual).

 


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.