Encrypt and decrypt SMS
I'm trying to create an application where I should encrypt a SMS between two phones. This is a school assignment where the task is just that.
I have no problem with using such as Message Digest in the same class.
The task is solved by a simple encryption.
I wondering if anyone has experience out of this, and if someone has any tips on a simple solution?
Did you have a cipher (encrypt/decrypt) algorithms?
In simple way you can use the phone number as the public key. So you don't need to worry about the key distribution.
Using a simple algorithm, or a mathematical equation you can generate a private key, and embedded it in the phone (SIM). So that only receiver know it. Each phone has a unique serial number as well, but we cannot use it as the private key because sellers always record that number to track the phone in case of any. So you have to generate a one secretly and embedded in the phone.
To achieve higher security on private key, SIM card providers can ask to renew the private key time to time, relevant to the ciphers.
Thanks for your answer!
I got some problem when I´m trying to implement Bouncy castle to JavaME. I can Import it to my project but I cant use KeyPairGenerator. Do you have any suggestion hove I can do it in another way?
What you mean? Did you get any error message?
You mean generating key pairs? That's what I told you in my very first thread. Actually you can build up your own algorithm to do this. There is no standard way to generate keys.
Originally Posted by ZeCute
I think I solved my problem with the keyGenerator.
Thanks for all your help!
You are welcome. Then please mark the thread solved.
Where do I mark the thread solved?
Check on top of the thread. There is a menu and you can find a section named as Thread Tools. Click on it and you ca find the option to mark the thread.