This is a coursework programmed in MATLAB.
Open the script main.m. change the filepath to the txt file you would like to encrypt.
file_path='.../file.txt
Then enter the encryption key.
key='thisisjustaexample'
Run the next code to get encrypted and decrypted text.