You tried this where the bolded line is, and it did not print out?
Code:
public static void main(String[] args) throws Exception
{
setUp();
if (args.length !=1)
{
System.out.println(
"USAGE: java LocalEncrypter " + "[String]");
System.exit(1);
}
byte[] encryptionBytes = null;
String input = args[0];
System.out.println("Entered: " + input);
encryptionBytes = encrypt(input);
System.out.println("Encrypted: " + (new String(encryptionBytes)));
System.out.println("Recovered: " + decrypt(encryptionBytes));
}
Bookmarks