message=str(input("Please enter a message :"))
dic={ "a":"i", "e":"o", "i":"u", "o":"a", "u":"e", "b":"m", "d":"t","g":"b","m":"d","t":"g","1":"5","3":"5","5":"9","7":"1","9":"3"}
decrypted= ""
encrypted = ""
for letter in message:
if letter in dic:
encrypted+=dic[letter]
else:
encrypted+=letter
I am doing an assignment to encrypt and decrypt the message. I know how to encrypt it using keys. But the problem is that I am struggling to decrypt it without using any library as it is in my restriction. So basically my question is how we can decrypt it without any library ?