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

Adobe AIR Development

Reply
Contributor
amlanbhuyan1988
Posts: 40
Registered: ‎04-26-2011
My Device: blackberry playbook

Efficient encryption algorithm for blackberry playbook...........

hi, I am trying to encrypt the data which is communicated from my playbook device to the server and also encrypting and decrypting the data stored in the sqlite database.......can anyone tell me which would be the most efficient and secure algorithm to do so.........

 

some sample walkthroughs would be very appreciated.......

Regular Contributor
yaddesign
Posts: 53
Registered: ‎04-28-2011
My Device: Playbook

Re: Efficient encryption algorithm for blackberry playbook...........

The AIR API already includes a way to encrypt local SQLite databases.

You can find good tutorials at the following urls:

 

http://www.adobe.com/devnet/air/flex/quickstart/articles/encrypted_database.html

http://cookbooks.adobe.com/post_AIR_Encrypted_SQLite_Database-16250.html


Playbook App: Car Crash

Contributor
amlanbhuyan1988
Posts: 40
Registered: ‎04-26-2011
My Device: blackberry playbook

Re: Efficient encryption algorithm for blackberry playbook...........

does the second tutorial encrypt whats been received and sent over the network???

Regular Contributor
yaddesign
Posts: 53
Registered: ‎04-28-2011
My Device: Playbook

Re: Efficient encryption algorithm for blackberry playbook...........

No. Only the local database.
Contributor
cideasdev
Posts: 15
Registered: ‎04-04-2011
My Device: None

Re: Efficient encryption algorithm for blackberry playbook...........

For information over the network you can always connect via SSL, check this library out http://code.google.com/p/as3httpclientlib/ its an enhance http client to work with PUT,HEAD,DELETE and some other nice features
Playbook Applications : ArrangeIt File Manager
Contributor
amlanbhuyan1988
Posts: 40
Registered: ‎04-26-2011
My Device: blackberry playbook

Re: Efficient encryption algorithm for blackberry playbook...........

My basic need is to encrypt the password and user id (entered by the user) and send the encrypted data to the server(using https).....how do i achieve this....I am able to encrypt the database but this is a completely different issue....plz help

Regular Contributor
yaddesign
Posts: 53
Registered: ‎04-28-2011
My Device: Playbook

Re: Efficient encryption algorithm for blackberry playbook...........

You might want to check out this library:

http://code.google.com/p/as3crypto/

Look at the demo page to see if that's what you're looking for.
Contributor
amlanbhuyan1988
Posts: 40
Registered: ‎04-26-2011
My Device: blackberry playbook

Re: Efficient encryption algorithm for blackberry playbook...........

I am able to encrypt and decrypt the data using aes encryption algorithm.....But it does not work if yhe key size is less than 7 characters(gives this error:" Property -4 not found on flash.utils.ByteArray and there is no default value.") and the text to be encrypted ic less than 16 characters(gives this error:The supplied index is out of bounds). the code for encryption is::

//define the encryption key
var key:ByteArray =Hex.toArray("1234567");
				
//put plaintext into a bytearray
var plainText:ByteArray    = Hex.toArray(Hex.fromString(txtInput.text));
				
//set the encryption key
var aes:AESKey = new AESKey(key);
				
				
//encrypt the text
aes.encrypt( plainText );
				

 

 

 

 

 

 

 

plz help....