As per, the assignment given by sir in the lecture, I was able to encode, encrypt and decrypt the code entered in the text area. However, I have not been able to publish the evaluated result using the eval function.
Please look into the given repo for the code I have done.