PHP in Visual Studio Code: PASSWORD hashing and verification

Published: 05 August 2020
on channel: Tech VideoStack
1,549
13

In this video I will show you how to do password hashing and verification in PHP using Visual Studio Code.

It is always best practice to hash or encrypt you plain-text passwords before you save them to your database.

Staring with PHP 5.5, you can use a very easy way to do password hashing. You can do that by using the password_hash funcion.

Hashing in this way, is called one way hashing, as you cannot de-hash or decrypt the password, you can just hash or encrypt it.

You can only verify if the password matches a hash, using the password_verify function.

0:00 - Intro
0:18 - Start
1:08 - Password Hash
3:36 - XAMPP test
4:45 - Password Verify
7:27 - Outro

I use Visual Studio Code or VS Code as my PHP and HTML code editor.

I use XAMPP and Chrome browser to test the results.

--------------------------------------------------------------------------------------------------------------------------
Check my other video in the following playlists:
PHP and MySQL in Visual Studio Code for Beginners: http://bit.ly/2lQUg0h
PHP, mySQL and Visual Studio Code - Short Tutorials: https://bit.ly/3ewTewV
--------------------------------------------------------------------------------------------------------------------------


►► Follow us:
Facebook:   / techvideostack  
Instagram:   / techvideostack  
Twitter:   / stackvideo  
Pixabay: https://pixabay.com/users/techvideost...

❓ You have any QUESTION? - Leave them in the comments section below.

Thanks for watching

#PasswordHash #PHP #VSCode