IS Lab 1 - Progress So Far

This commit is contained in:
Student 2025-07-29 09:46:39 +05:30
parent e14d40f9b2
commit 518399472f
7 changed files with 348 additions and 1 deletions

16
IS/Lab/Lab1/q4_hill.py Normal file
View file

@ -0,0 +1,16 @@
def print_mat(hk):
def main():
ptext = input("Kindly enter your desired plaintext: ")
hk = input("Kindly enter the Hill Key: ")
print("Welcome to the Hill cipher.")
print("Plaintext: ", ptext)
print("Hill Key: ", print_mat(hk))
ctext = hill_en(ptext, hk)
print("Ciphertext: ", ctext)
decrypted_text = hill_de(ctext, hk)
print("Decrypted Text: ", decrypted_text)
if __name__ == '__main__':
main()