Sumateja Konge
Sumateja Konge

Reputation: 43

Encrypting sms by a java app

IS it possible to encrypt and then send the sms to a gateway like txtweb.com .I want to develop a JAVA banking application which uses the inbuilt sms sending feature of a phone. Since bank app has money transfers i want to encrypt the sms.Is it possible to to recieve sms replies by the gateway in the MIDlet itself.

Upvotes: 2

Views: 852

Answers (1)

Roshnal
Roshnal

Reputation: 1314

Yes, its possible and assuming that you are using J2ME, you should be able to use the in-built Messaging classes to send/receive the text messages.

As for encrypting, process the text as you would a normal String. For example, if you decide to use ROT13 encryption, you could take the text char by char and increment each by 13. Then after the encryption is done, just set the message load to the text you just processed, and then use the in-built functions of the Messaging classes of J2ME.

EDIT

More resources about sending/receiving SMS, encyption algorithms and J2ME development as have been requested are provided below. And you may want to take a look at Oracle J2ME Docs also.

For more about encryption and different data encryption algorithms: Encryption - Wikipedia

For code snippet of sending/receiving SMS in J2ME: SMS Sending/Receiving Code Snippet

For beginning J2ME Development: Beginning J2ME - From Novice To Professional 3rd Edition

Upvotes: 2

Related Questions