[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2007-10-08
3
Medium Priority
?
1,451 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.
0
Comment
Question by:joseph301074
  • 2
3 Comments
 
LVL 8

Accepted Solution

by:
Bradley Haynes earned 750 total points
ID: 20034640
Download the source from here:
http://developers.sun.com/mobility/midp/articles/security4/
Unzip it and open the src folder.
Attention should be focussed on the Sendtask.java src file.
0
 

Author Comment

by:joseph301074
ID: 20063423
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

0
 

Author Comment

by:joseph301074
ID: 20136770
pls delete this question - i have rephrased the question and added more points to it as per the moderator's comments.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ransomware is a growing menace to anyone using a computer or mobile device. Here are answers to some common questions about this vicious new form of malware.
This program is used to assist in finding and resolving common problems with wireless connections.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question