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');     } 

crypt


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -