Results 1 to 9 of 9
  1. #1
    ZeCute is offline Member
    Join Date
    May 2010
    Posts
    14
    Rep Power
    0

    Default 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?

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    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.

  3. #3
    ZeCute is offline Member
    Join Date
    May 2010
    Posts
    14
    Rep Power
    0

    Default

    Thanks for your answer!
    I got some problem when Im 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?

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by ZeCute View Post
    Do you have any suggestion hove I can do it in another way?
    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.

  6. #6
    ZeCute is offline Member
    Join Date
    May 2010
    Posts
    14
    Rep Power
    0

    Default

    I think I solved my problem with the keyGenerator.
    Thanks for all your help!

  7. #7
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  8. #8
    ZeCute is offline Member
    Join Date
    May 2010
    Posts
    14
    Rep Power
    0

    Default

    Where do I mark the thread solved?

  9. #9
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

Similar Threads

  1. Replies: 2
    Last Post: 04-19-2010, 07:25 PM
  2. Ideas to decrypt this ?
    By ketku in forum Advanced Java
    Replies: 0
    Last Post: 11-16-2009, 11:52 AM
  3. How to Encrypt content of txt file?
    By aRTx in forum New To Java
    Replies: 0
    Last Post: 03-25-2009, 11:26 AM
  4. encrypt a folder
    By subramanya2teja in forum Advanced Java
    Replies: 5
    Last Post: 03-20-2009, 01:27 AM
  5. Replies: 8
    Last Post: 08-26-2008, 05:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •