Data security is crucial for some types of applications. Data security is feasible in the MIDP world using the Bouncy Castle cryptography package. The Bouncy Castle package provides sophisticated, accessible, industrial-strength cryptography for the MIDP platform. This example presented two possible applications— one using a message digest for secure password authentication, and the other using ciphers to encrypt data sent between a MIDlet and a servlet.
Keep in mind that adding cryptography to an application or system won't necessarily make it more secure. You need to take a comprehensive system-level approach to security. Cryptography is just one of the tools in your box.