×
Namespaces

Variants
Actions

Talk:Encryption of data using JSR-177

From Nokia Developer Wiki
Jump to: navigation, search
{{{width}}}
18 Sep
2009
Article Review by Larry101 (20090918)

This concise article demonstrates how to perform encryption and decryption easily using Java ME (and the JSR-177 API in particular). The article demonstrates the use of the DES symmetric encryption algorithm. The String "THIS IS A SECRET MESSAGE" is encrypted using the key “SECRET!!” (which must be 8 bytes in length).

The article shows how to convert a message to a byte array, initialize a Cypher object using a key, and perform encryption and decryption.

 

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×