application/Espo/Core/Utils/PasswordHash.php
public function hash($password, $useMd5 = true)
    {
        $salt = $this->getSalt();

        if ($useMd5) {
            $password = md5($password);
        }

        $hash = crypt($password, $salt);
        $hash = str_replace($salt, '', $hash);

        return $hash;
    }
public function hash($password, $useMd5 = true)
    {
        $salt = $this->getSalt();

        if ($useMd5) {
            $password = md5($password);
        }

        $hash = crypt($password, $salt);
        $hash = str_replace($salt, '', $hash);

        return $hash;
    }
public function hash ( $ password , $ useMd5 = true ) { $ salt = $ this -> getSalt ( ) ; if ( $ useMd5 ) { $ password = md5 ( $ password ) ; } $ hash = crypt ( $ password , $ salt ) ; $ hash = str_replace ( $ salt , '' , $ hash ) ; return $ hash ; }
Get hash of a pawword

@param  string $password
@return string
Get hash of a pawword