+ 1

How to encode a password field using php

15th Jan 2017, 2:15 AM
Arthi Vadodaria
Arthi Vadodaria - avatar
2 ответов
+ 5
via encrypting. Check "sha256", and then apply a "salt"
15th Jan 2017, 2:43 AM
Nahuel
Nahuel - avatar
+ 3
Please learn more about Encoding, Decoding, Encryption, and Decryption. They are different. If you want to encrypt your password, I would recommended using password_hash($plain_password, password_default) and to verify password while login use password_verify($password_input)
15th Jan 2017, 5:54 AM
Fendi Septiawan
Fendi Septiawan - avatar