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)