Example #1
0
 /** Um me´todo simples para testar a Crifra de César */
 public static void main(String[] args) {
   Caesar cipher = new Caesar();
   System.out.println("Encryption order = " + new String(cipher.encrypt));
   System.out.println("Decryption order = " + new String(cipher.decrypt));
   String secret = "THE EAGLE IN IN PLAY; MEET AT JOE´S.";
   secret = cipher.encrypt(secret);
   System.out.println(secret); // o texto cifrado
   secret = cipher.decrypt(secret);
   System.out.println(secret); // deve ser texto limpo novamente
 }