43: Hashing and de-hashing data using PHP | PHP tutorial | Learn PHP programming

Hashing and de-hashing data using PHP | PHP tutorial. In this lesson you will learn about database data security, and how to hash and dehash data using PHP. In PHP we have a hash function which uses bcrypt, in order to protect data provided by our users.

Login system tutorial (link starts at hashing part): https://youtu.be/xb8aad4MRx8?t=59m42s

Download lesson files: http://mmtuts.net/course.php?c=php&l=43

mmtuts is a YouTube channel that focuses on teaching beginner and advanced courses in various multimedia related skills.
We plan to make tutorials available on programming, video production, animation, graphic design, and on software such as the Adobe Creative Cloud programs.

PHP for beginners is a how to series that teaches the PHP coding language to people who are just starting out learning programming. The course teaches how PHP scripting can be made easy and teaches how to build many apps such as a login system, a comment section, how to upload images, how to create users in a website, and much more. Creating dynamic websites with PHP is easy and should not be seen as otherwise, which is why we want to explain the language in a easy to understand way for beginners.

If you have suggestions on new courses, or specific lessons within existing courses you would like to see, then feel welcome to submit them in the comment section or in a private message. ALL suggestions will be seen, but not all will be replied to since we get quite a few every day.


Connor Gaunt says:

It thought the whole point of hashing was you can never “de-hash” it? You can only re-hash new information and compare with the saved/old hash… I thought it was encryption and decryption where you could get the information back

Ehaab Saad says:

42 is miss bro.

Ali Zaman says:


King Otten says:

Is it also save to hash a password with sha512? And then for comparing them, instead of dehashing you hash the input and compare them with the database. Love this method as well tho 😀

Николай Николов says:

Very useful, thank you!

magicalbhakuni says:

learned a lot from this video.

Abdul Jama says:

can you create a project where you create a content management system with css and php? if you have the time thank you.

Rohan Saand says:

very informative, Thanks :)

Mustafa H. says:

I don’t think password_verify actually dehashes, instead it hashes the input and uses an algorithm to see if it corresponds to the given hash (giving all the necessary like salt and cost)

Vikas Padaliya says:

Can’t find no.41 and 42 , are they missing?

Luca Sarif says:

Active channel making php tutorials? Unheard of – and awesome

Scott Guo says:

You don’t mean that you can actually DE-hash a hashed string right? If a hash can be de-hashed, it’s not a hash anymore.

Marius Mihai Lionte says:

are you uploading again videos that you posted in 2015?

Hamooodd Nassers says:

You are the best man .I suggest to make some project using all you learned to us such as inventory website or something like that .it will help us alot and you can make it payable and will buy it .
I understand every word you said in HTML/CSS curse,PHP and OOP PHP .

HABELFOC _ says:


Ewerton Correa says:

Hello, your channel is fantastic. Did you know how many php classes you have?

Credix says:

Hello Daniel! Can I ask you a quick question? What color syntax/theme you’re using? Thanks for the answer and for the great tutorial!

Write a comment


Human Verification: In order to verify that you are a human and not a spam bot, please enter the answer into the following box below based on the instructions contained in the graphic.

Do you like our videos?
Do you want to see more like that?

Please click below to support us on Facebook!

Send this to a friend

▷ Other ReviewsVehicles▷ Show Cars▷ Motorbikes▷ Scooters▷ Bicycles▷ Rims & Tires▷ Luxury BoatsFashion▷ Sunglasses▷ Luxury Watches▷ Luxury Purses▷ Jeans Wear▷ High Heels▷ Kinis Swimwear▷ Perfumes▷ Jewellery▷ Cosmetics▷ Shaving Helpers▷ Fashion HatsFooding▷ Chef Club▷ Fooding Helpers▷ Coktails & LiquorsSports▷ Sport Shoes▷ Fitness & Detox▷ Golf Gear▷ Racquets▷ Hiking & Trek Gear▷ Diving Equipment▷ Ski Gear▷ Snowboards▷ Surf Boards▷ Rollers & SkatesEntertainment▷ DIY Guides▷ Zik Instruments▷ Published Books▷ Music Albums▷ Cine Movies▷ Trading Helpers▷ Make Money▷ Fishing Equipment▷ Paintball Supplies▷ Trading Card Games▷ Telescopes▷ Knives▷ VapesHigh Tech▷ Flat Screens▷ Tech Devices▷ Camera Lenses▷ Audio HiFi▷ Printers▷ USB Devices▷ PC Hardware▷ Network Gear▷ Cloud Servers▷ Software Helpers▷ Programmer Helpers▷ Mobile Apps▷ Hearing AidsHome▷ Home Furniture▷ Home Appliances▷ Tools Workshop▷ Beddings▷ Floor Layings▷ Barbecues▷ Aquarium Gear▷ Safe Boxes▷ Office Supplies▷ Security Locks▷ Cleaning ProductsKids▷ Baby Strollers▷ Child Car Seats▷ Remote ControlledTravel▷ Luggages & Bags▷ Airlines Seats▷ Hotel Rooms▷ Fun Trips▷ Cruise Ships▷ Mexico Tours