You can download the php file here:
Before you can use this, you must change our database a little. Your have your column as an integer field. That will not work because an encrypted string will be a character field, not a numeric field. So run this query to update your database:
ALTER TABLE encrypttable MODIFY COLUMN encryptcolumn TEXT;
Next, make sure that the connect data in the PHP file matches your username and password XXXXX yoru MySQL. On lines 13 and 29 of the PHP file you will see that I have the username set to "root" and the password XXXXX to "" (empty). You will want to change this if that is not what you are using.
You should note that the example you gave a link to is an MD5 hash, not an encryption. A hash is a one-way string alteration. You cannot un-MD5 (unhash) a string. There is a thing called rainbow table that tries to do so by brute force. But there is no technological way of translating a hash ack to the original string.
In contrast, encryption is two-ways. It changes the string into a bunch of data that is not readable and can be converted back as long as you have the key.
I have implemented a common encryption function in PHP and put it in your page. It appears that this assignment is trying to get you to demonstrate the use of databases and encryption. This does exaclty that. You should be able to submit this and receive an excellent grade.
Let me know if you have any issues. I'm here to help and will do so until you are completely satisfied.
Please remember to rate my answer. It is the only way that I receive credit for my time and effort. If you require more assistance, simply continue our conversation before leaving any rating.
If you ever require assistance in the future, please feel free to request me direction by starting your questions with **For TheDoctor**.
Thank you so much for using JustAnswer. Have a great night!