src/Password/Manager/PasswordManager.php
public function hash($password, $hash_with = self::HASHED_WITH_PHP)
    {
        switch ($hash_with) {
            case self::HASHED_WITH_PHP:
                return password_hash($this->global_salt . $password, PASSWORD_DEFAULT);
            case self::HASHED_WITH_PBKDF2:
                return base64_encode($this->pbkdf2($password, $this->global_salt, 1000, 40));
            case self::HASHED_WITH_SHA1:
                return sha1($this->global_salt . $password);
            default:
                throw new InvalidArgumentException("Hashing mechanism '$hash_with' is not supported");
        }
    }
public function hash($password, $hash_with = self::HASHED_WITH_PHP)
    {
        switch ($hash_with) {
            case self::HASHED_WITH_PHP:
                return password_hash($this->global_salt . $password, PASSWORD_DEFAULT);
            case self::HASHED_WITH_PBKDF2:
                return base64_encode($this->pbkdf2($password, $this->global_salt, 1000, 40));
            case self::HASHED_WITH_SHA1:
                return sha1($this->global_salt . $password);
            default:
                throw new InvalidArgumentException("Hashing mechanism '$hash_with' is not supported");
        }
    }
{@inheritdoc}