This repository has been archived on 2025-02-26. You can view files and clone it, but cannot push or open issues or pull requests.
szurubooru/src/Services/PasswordService.php
2014-10-18 18:48:15 +02:00

17 lines
292 B
PHP

<?php
namespace Szurubooru\Services;
class PasswordService
{
private $config;
public function __construct(\Szurubooru\Config $config)
{
$this->config = $config;
}
public function getHash($password)
{
return hash('sha256', $this->config->security->secret . '/' . $password);
}
}