Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

PHP Tutorial: Password Encryption with MD5, SHA1, and Crypt -HD-

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
2,498
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Aug 19, 2011

In this tutorial, you will learn how to encrypt passwords and other data by using the md5, sha1, and crypt functions.

Be sure to SUBSCRIBE because there will be a new tutorial every week.

Follow me on Twitter @RiverCityGraphx

Like us on on facebook: http://on.fb.me/i8UQpt

Suggest tutorials at http://www.rivercitygraphix.com

For project files, help forums, and more check out the website at http://www.rivercitygraphix.com

For business related inquires contact us at rivercitygraphix@yahoo.com

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (RiverCityGraphix)

  • I use a "connect_to_mysql.php" file for my custom CMS sites. Its pretty much the same thing you'd find in a wp-config.php file. I was kinda hoping I could encrypt my db host name, and db password using these methods, but I couldn't get it to work. Can this be done?

  • @thisistotallylife Im not sure that you need to. The password and name should be safe in the php file. To my knowledge php files cannot be read unless you have the downloaded file.

  • How do you protect the security.php folder from being looked into? Never mined all the hash and rehash. The password is spelled out plainly in that folder and is the Achilles heel.

  • @GilbertBigelow What do you mean? This code would be used inside of a php file which would be invisible to the user. If for some reason you did have it in a folder you could create an index.php page inside of the folder with a simple redirect script back to the homepage.  That way users couldn't see the directory layout or file names.

  • Great tutorial

    i have a quick question can you help me how to create the playlise on youtube the way you have all the flash video tutorials, PHP MySQL Tutorials separated by line pleas i need help with so then i can add just photoshop tutorial on top and flash tutorials on bottom separeted by the line

    please help with i really appreciate it thank.

  • @rockomoron Go to My Videos and you should see an option to the left or somewhere on the page to create a playlist. To show them on a channel, go to your channel and edit the options to show them.

see all

All Comments (19)

Sign In or Sign Up now to post a comment!
  • I am Really Really impressed and happy to learn some thing new in my life i love u river city Grafix.

  • @RiverCityGraphix okay thanks!

  • Thanks for making this. Definitely subscribing. What would happen if we used more than 2 characters for crypt?

  • Great :)

    But one question is left... you said If some one get's my password encryptet with the crypt method he also has to know the salt to decrypt it... but the salt is everytime in the output of the crypt function... do i have to remove that and if yes: How to do that?

  • Great tutorial! Thanx!!

  • What program did you use to record your screen in such brilliant HD quality?

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more