Password encryption in php to access mysql database

I have a password in php code that reads:

//put sha1() encrypted password here - password here is 'Teropass1'
$password = '28a5d61d406847f801fcc6421866f73eae2342f5';

I need to change that Teropass1 but I need to know how to generate the encrypted password as well because I have to change both for the page to work.

Who is Participating?
Terry WoodsConnect With a Mentor IT GuruCommented:
Just run the new password through the php sha1() function and you've got what you need.
LHernandez2Author Commented:
I don't know how to do that.. could you please show me?
LHernandez2Author Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.