Encrypt User Password

PHOTO EMBED

Sun Apr 02 2023 21:36:48 GMT+0000 (Coordinated Universal Time)

Saved by @Joe_Devs #php

//encrypt user password

//    hash produces a fixed length string
    $hashFormat = "$2y$10$";

//    Random characters
    $salt = "HZTym3F5Ade6tvnVf5rXve";

//    combine the hash and salt
    $hashFormat_salt = $hashFormat . $salt;
    
//    password encrypted
    $password = crypt($password,$hashFormat_salt);
content_copyCOPY

https://codingfaculty.com/courses/41956/lectures/600445