using hashed passwords in php code -
i want put passwords in our source-code in extern file , access them via php function. don't want have them there in clear text idea hash them.
the question how can decrypt them when needed in application. (there no manual password entry)
or wrong way solve problem?
greetings ant !!
you can use crypt() save passwords
public function validatepassword($password) { return $this->password === crypt($password, 'hash'); }
Comments
Post a Comment