
-----------------------------------
nishanthan
Mon Jan 22, 2007 1:51 pm

how to decipher a piece of text message using java?
-----------------------------------
HERE IS THE CODE >>LET ME C IF U COULD DECrypT it


STPXBVMETPMSLGTPUBTPFBPROCUVMCUGTPZBVOTPROBVQTPBPTPIGSPRTPCIMGTPUBTPEGFOZQUTPUJSATPNGAACRGTPTPZBVTPQGBQMGTPJCWGTPAVFFGAAHVMMZTPQCAAGETPUJSATPAVNNCUSWGTPTPZBVTPAJBVMETPIGTPQOBVETPUJCUTPZBVTPRBTPUJSATPHCOTPTPWGOZTPSNQOGAASWGTPTPSTPXSAJTPZBVTPCMMTPUJGTPIGAU

-----------------------------------
Clayton
Mon Jan 22, 2007 3:56 pm

Re: how to decipher a piece of text message using java?
-----------------------------------
errr... no?

is this something you need help on?

if so, there are many topics about encryption and decryption around the site, search around for them.
if you do need help, post up a portion of the code you've tried and we'll see if we can't help you. :D

-----------------------------------
TheFerret
Mon Jan 22, 2007 4:02 pm

RE:how to decipher a piece of text message using java?
-----------------------------------
Do your own damned work and don't rely on the forum members to do it...

-----------------------------------
Dan
Mon Jan 22, 2007 4:31 pm

RE:how to decipher a piece of text message using java?
-----------------------------------
If you where meant to decrypt it, it is probly just a simple Shift Cipher or Substitution Cipher. However if this is for a corse on encription and is more advaced it could also be a Permutation Cipher, Hill Cipher, ect.

In the case of shift or subsitiution you can do a simple statical anyasic of the cipher text based on the english langue or simple try random keys if it is just a shift cipher.

It whould help to know what kind of cipher is being used as that will make it much easer to find a way to atack it. 

Just looking at it shows you that the text is only A-Z and there are no spaces. This should give you an idea of the keyspace.

-----------------------------------
nishanthan
Mon Jan 22, 2007 4:35 pm

Re: how to decipher a piece of text message using java?
-----------------------------------
yo man...i tried ...i just can't figure it out...if u want i could show u wat i did so far...so yea

-----------------------------------
nishanthan
Mon Jan 22, 2007 6:34 pm

RE:how to decipher a piece of text message using java?
-----------------------------------
here  this is all i did so far..

import java.io.*;

public class CryptoQ2
{
    public static void main (String[] args) throws IOException
    {
 BufferedReader br = new BufferedReader (new FileReader ("message.txt"));
 BufferedReader in = new BufferedReader (new InputStreamReader (System.in));
 String alph = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
 String keyword = null;
 String msgtxt = br.readLine ();

 System.out.println ("Please input the keyword");
 keyword = in.readLine ();
 keyword = keyword.toUpperCase ();
 System.out.println (msgtxt);

 alph = scrambled_text (keyword, alph);
 System.out.println (alph);
 
 msgtxt = decryption (alph, msgtxt);

 msgtxt = message_unparser (msgtxt);
 System.out.println (msgtxt);
    }


    public static String scrambled_text (String key, String alphabet)
    {
 // Write code to create the scrambled alpha here   
 // 'key' is the keyword that will be used to create the new scrambled alphabet - 'Degrobois' will be used in this case
 // 'alphabet' is the unscrambled alphabet from A to Z that needs to be scrambled
 
 //int a = key.length();
 String newkey = key + alphabet;
 //int b = newkey.length();
 
 for (int i=0; i