password($source))); } public function encode(string $password): string { return sprintf('{%s}%s',self::key,base64_encode(password_hash($password,PASSWORD_ARGON2ID))); } }