9. Admin and PHP Password Hash And Verify [with Homework!] | Build a CMS using OOP CMS tutorial MVC

preview_player
Показать описание
Let's start with administration for our cms php oop project, and lets see how to do a PHP password hash and verify manually, AND also using password hashing and verification using password_hash function. We will also show why it is bad idea to use md5 to hash your passwords, and how easily it can be compromised, as well as what are the advantages of using the salt when hashing.

HOMEWORK: Make validation of password before even checking the database(check the timestamps). Post your code on gists and send it in the comments, or join Applicable Programmers facebook group to discuss the problem and solutions.

Interested in learning real-life PHP design patterns?

Join our Facebook group to follow the news and join discussion
or discord group if that is more your thing

➤ LINKS
(use tags to navigate between lessons)

Timestamps:
Administration (00:00)
Old/wrong way of using md5 (13:50)
Password hashing and salt explained (20:00)
md5 vs hashing and salting (28:40)
Homework (33:43)
password_hash (35:20)
Рекомендации по теме
Комментарии
Автор

Hi, i did the homework. It's working but not sure if the class structure is valid. Can you check please:)?

ozanulutas
Автор

Hi, Can you please share the presentation slide that you had mentioned in the video?

startlearn
Автор

Have you seen a database with passwords stored in a text field?
Or have you received an "forgot password" email from some forum, that actually contains your original password?

ApplicableProgramming
Автор

Why don't you check session is_admin in Controller contructor?

hochihuynh
Автор

Hi, you mentioned that this tutorial is for educational purposes only. I am wondering what can be done so that it can be used for production.

terrymurray
Автор

Please make a video on How to build ORM from scratch using PHP

rxxt-shvj
Автор

Awosem.can you make appointment system using php oops

rajabhishek
join shbcf.ru