- /**
- * Decodes the string
coded in CodeGenerator
- *
- * @author TK Rogers
- * @version 8-26-11
- */
- import
java.util.Random ;
- public class
DeCoder {
- public static void
main ( String input , long seed ) {
-
Random rand = new Random ( seed ) ;
-
String codedString = "" ;
-
-
// Decodes the coded string
-
for ( int x = 0 ; x < input.length ( ) ; x++ ) {
-
codedString += ( char ) ( input.charAt ( x ) - (
int ) ( rand.nextInt ( 64 ) - 32 ) ) ;
-
}
-
-
System.out.println ( codedString ) ;
- }
- }