Jan 17, 2017 03:05 PM
(This post was last modified: Jan 17, 2017 03:11 PM by SIM-3364521.)
Hey guys Im new to this Forums and im also kind of new to Java as well
But here is something i wrote real quick that might be useful for some...
(One can clearly tell that the code isn't optimized)
seams like the code is too long so i pasted it on pastebin:
pastebin.com/wAqVSy3v
How to use:
As You can see one is only able to crypt a String of the legth < 9.
So it might be helpful to use the String tokenizer / substring method on the Message first
But here is something i wrote real quick that might be useful for some...
(One can clearly tell that the code isn't optimized)
seams like the code is too long so i pasted it on pastebin:
pastebin.com/wAqVSy3v
How to use:
Code
//first create a new Cryper Object:
Crypter cryp = new Crypter();
//Crypt() Method expects a String and return a long value:
long crypted = cryp.Crypt("Test");
//DeCrypt expects a long value and prints the decrypted Message to Console:
cryp.DeCrypt(crypted);As You can see one is only able to crypt a String of the legth < 9.
So it might be helpful to use the String tokenizer / substring method on the Message first


