Caesar Cipher In Java Program
It seems that your encryption just shifts every character of the message by a given value. Int letterCiphered= (letter-key2); To decipher such a message you should shift each character of the cipher by the same value but in the other direction. Ross Jeffries Unstoppable Confidence Rapidshare. Int letter= (letterCiphered+key2); The decryption function you have in the code does something else entirely. Update following the comments: If i understand correctly you want to convert a string of ascii values to the text they represent. To parse the input string, if it's a simple format, you could just use String.split() read about it. To convert a textual representation of a number to an actual number you could use Integer.parseInt(). Finally, to turn an integer ascii value to a character you only need to cast char c = (char)97; Parse the input to identify each ascii value, convert each value to an integer and cast it to a character, then just concatenate the characters to a string. Best Fsx Ware Addons more.
Yes it's a Caesar Cipher but then the letters are converted to their corresponding ASCII values and stored in an Array this Array is then Displayed in my JTextField and sorry I was busy messing around with some ideas when I posted this I know how to decode it. My problem is not the actual deciphering it's more on how do I fetch only pairs of ASCII values from entered text and convert them to text (chars) if you follow the URL you would see what I mean, it doesn't cipher the text but it does convert the char to ASCII and back. Crack Za Fifa 08 Pc. – Oct 30 '11 at 16:55 •.