From 98942630b6767b86fa748696c80b52bcaed7b95e Mon Sep 17 00:00:00 2001 From: Student Date: Tue, 29 Jul 2025 09:49:28 +0530 Subject: [PATCH] IS Lab 1 - Progress So Far --- IS/Lab/Lab1/q4_hill.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/IS/Lab/Lab1/q4_hill.py b/IS/Lab/Lab1/q4_hill.py index 9093626..9f5c540 100644 --- a/IS/Lab/Lab1/q4_hill.py +++ b/IS/Lab/Lab1/q4_hill.py @@ -1,4 +1,6 @@ -def print_mat(hk): +def hill_en(ptext,hk): + +def hill_de(ptext,hk): def main(): ptext = input("Kindly enter your desired plaintext: ") @@ -6,7 +8,7 @@ def main(): print("Welcome to the Hill cipher.") print("Plaintext: ", ptext) - print("Hill Key: ", print_mat(hk)) + print("Hill Key: ", hk) ctext = hill_en(ptext, hk) print("Ciphertext: ", ctext) decrypted_text = hill_de(ctext, hk)