We help IT Professionals succeed at work.

encrypt and decrypt  SMS message in java using latest enryption techniques(SYM,ASYM) - which should not be crackable. Any good java program would help

1,505 Views
Last Modified: 2013-12-09
I would like  to encrypt and decrypt  SMS message in java using latest enryption techniques(SYMMETRIC,ASYMMETRIC) - which should be very difficult to crack or better it should not be crackable. Any good sample program would help - thank you. If the Solution is very good - i can increase the 250 points to 500.
Comment
Watch Question

Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Dear Haynes,
I have downloaded the bounty castle file crypto-137.zip - is this right ? there are many files in there ..  which one should i use in the classpath for whisper

Here is the output from the  wireless toolkit after build button is pressed...
Project "Whisper" loaded
Settings updated
Project settings saved
Project settings saved
Building "Whisper"
D:\WTK2.5.1\apps\Whisper\src\SendTask.java:39: package java.security does not exist
import java.security.SecureRandom;
                    ^
D:\WTK2.5.1\apps\Whisper\src\SendTask.java:43: package org.bouncycastle.crypto does not exist
import org.bouncycastle.crypto.StreamBlockCipher;
                              ^
D:\WTK2.5.1\apps\Whisper\src\SendTask.java:44: package org.bouncycastle.crypto does not exist
import org.bouncycastle.crypto.StreamCipher;
                              ^
D:\WTK2.5.1\apps\Whisper\src\SendTask.java:45: package org.bouncycastle.crypto.engines does not exist
import org.bouncycastle.crypto.engines.AESLightEngine;
                                      ^
D:\WTK2.5.1\apps\Whisper\src\SendTask.java:46: package org.bouncycastle.crypto.modes does not exist
import org.bouncycastle.crypto.modes.CFBBlockCipher;
                                    ^
D:\WTK2.5.1\apps\Whisper\src\SendTask.java:47: package org.bouncycastle.crypto.params does not exist
import org.bouncycastle.crypto.params.KeyParameter;
                                     ^
D:\WTK2.5.1\apps\Whisper\src\SendTask.java:51: cannot find symbol
symbol  : class SecureRandom
location: class SendTask
  private static SecureRandom mSecureRandom;
                 ^
D:\WTK2.5.1\apps\Whisper\src\WhisperMIDlet.java:46: package org.bouncycastle.crypto does not exist
import org.bouncycastle.crypto.StreamBlockCipher;
                              ^
D:\WTK2.5.1\apps\Whisper\src\WhisperMIDlet.java:47: package org.bouncycastle.crypto does not exist
import org.bouncycastle.crypto.StreamCipher;
                              ^
D:\WTK2.5.1\apps\Whisper\src\WhisperMIDlet.java:48: package org.bouncycastle.crypto.engines does not exist
import org.bouncycastle.crypto.engines.AESLightEngine;
                                      ^
D:\WTK2.5.1\apps\Whisper\src\WhisperMIDlet.java:49: package org.bouncycastle.crypto.modes does not exist
import org.bouncycastle.crypto.modes.CFBBlockCipher;
                                    ^
D:\WTK2.5.1\apps\Whisper\src\WhisperMIDlet.java:50: package org.bouncycastle.crypto.params does not exist
import org.bouncycastle.crypto.params.KeyParameter;
                                     ^
D:\WTK2.5.1\apps\Whisper\src\SendTask.java:63: cannot find symbol
symbol  : class SecureRandom
location: class SendTask
      mSecureRandom = new SecureRandom();
                          ^
D:\WTK2.5.1\apps\Whisper\src\SendTask.java:68: cannot find symbol
symbol  : class KeyParameter
location: class SendTask
    KeyParameter key = new KeyParameter(mPeer.getKey());
    ^
D:\WTK2.5.1\apps\Whisper\src\SendTask.java:68: cannot find symbol
symbol  : class KeyParameter
location: class SendTask
    KeyParameter key = new KeyParameter(mPeer.getKey());
                           ^
D:\WTK2.5.1\apps\Whisper\src\SendTask.java:69: cannot find symbol
symbol  : class AESLightEngine
location: class SendTask
    AESLightEngine blockCipher = new AESLightEngine();
    ^
D:\WTK2.5.1\apps\Whisper\src\SendTask.java:69: cannot find symbol
symbol  : class AESLightEngine
location: class SendTask
    AESLightEngine blockCipher = new AESLightEngine();
                                     ^
D:\WTK2.5.1\apps\Whisper\src\SendTask.java:70: cannot find symbol
symbol  : class CFBBlockCipher
location: class SendTask
    CFBBlockCipher cfbCipher = new CFBBlockCipher(blockCipher, 8);
    ^
D:\WTK2.5.1\apps\Whisper\src\SendTask.java:70: cannot find symbol
symbol  : class CFBBlockCipher
location: class SendTask
    CFBBlockCipher cfbCipher = new CFBBlockCipher(blockCipher, 8);
                                   ^
D:\WTK2.5.1\apps\Whisper\src\SendTask.java:71: cannot find symbol
symbol  : class StreamCipher
location: class SendTask
    StreamCipher streamCipher = new StreamBlockCipher(cfbCipher);
    ^
D:\WTK2.5.1\apps\Whisper\src\SendTask.java:71: cannot find symbol
symbol  : class StreamBlockCipher
location: class SendTask
    StreamCipher streamCipher = new StreamBlockCipher(cfbCipher);
                                    ^
D:\WTK2.5.1\apps\Whisper\src\SendTask.java:79: operator + cannot be applied to int,AESLightEngine.getBlockSize
    int length = messageBytes.length + blockCipher.getBlockSize();
                             ^
D:\WTK2.5.1\apps\Whisper\src\SendTask.java:79: incompatible types
found   : <nulltype>
required: int
    int length = messageBytes.length + blockCipher.getBlockSize();
                                     ^
D:\WTK2.5.1\apps\Whisper\src\WhisperMIDlet.java:235: cannot find symbol
symbol  : class KeyParameter
location: class WhisperMIDlet
        KeyParameter key = new KeyParameter(sender.getKey());
        ^
D:\WTK2.5.1\apps\Whisper\src\WhisperMIDlet.java:235: cannot find symbol
symbol  : class KeyParameter
location: class WhisperMIDlet
        KeyParameter key = new KeyParameter(sender.getKey());
                               ^
D:\WTK2.5.1\apps\Whisper\src\WhisperMIDlet.java:236: cannot find symbol
symbol  : class AESLightEngine
location: class WhisperMIDlet
        AESLightEngine blockCipher = new AESLightEngine();
        ^
D:\WTK2.5.1\apps\Whisper\src\WhisperMIDlet.java:236: cannot find symbol
symbol  : class AESLightEngine
location: class WhisperMIDlet
        AESLightEngine blockCipher = new AESLightEngine();
                                         ^
D:\WTK2.5.1\apps\Whisper\src\WhisperMIDlet.java:237: cannot find symbol
symbol  : class CFBBlockCipher
location: class WhisperMIDlet
        CFBBlockCipher cfbCipher = new CFBBlockCipher(blockCipher, 8);
        ^
D:\WTK2.5.1\apps\Whisper\src\WhisperMIDlet.java:237: cannot find symbol
symbol  : class CFBBlockCipher
location: class WhisperMIDlet
        CFBBlockCipher cfbCipher = new CFBBlockCipher(blockCipher, 8);
                                       ^
D:\WTK2.5.1\apps\Whisper\src\WhisperMIDlet.java:238: cannot find symbol
symbol  : class StreamCipher
location: class WhisperMIDlet
        StreamCipher streamCipher = new StreamBlockCipher(cfbCipher);
        ^
D:\WTK2.5.1\apps\Whisper\src\WhisperMIDlet.java:238: cannot find symbol
symbol  : class StreamBlockCipher
location: class WhisperMIDlet
        StreamCipher streamCipher = new StreamBlockCipher(cfbCipher);
                                        ^
31 errors
com.sun.kvem.ktools.ExecutionException
Build failed

Author

Commented:
pls delete this question - i have rephrased the question and added more points to it as per the moderator's comments.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.