diff --git a/CipherTest.java b/CipherTest.java index 2f6ac6b..ddc951f 100644 --- a/CipherTest.java +++ b/CipherTest.java @@ -16,6 +16,10 @@ public static void main(String[] args) System.out.println("Decrypted Text: " + text1_decrypted); System.out.println(); + if (!text1.equals(text1_decrypted)) { + System.out.println("Hata: Decryption işlemi başarısız!"); + } + // text2 is the message to be decrypted, something meaningful should print if Cipher is working correctly String text2 = "iu, git pldp hehocplvgk vj tiouvgk, plvj jliqay sduh jhgjh. ldeh d kiiy phos!"; System.out.println(cipher.decrypt(text2));