Link to home
Start Free TrialLog in
Avatar of Joseph Jean pierre
Joseph Jean pierreFlag for India

asked on

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

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.
ASKER CERTIFIED SOLUTION
Avatar of Bradley Haynes
Bradley Haynes
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Joseph Jean pierre

ASKER

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

pls delete this question - i have rephrased the question and added more points to it as per the moderator's comments.