szurubooru/src/Services/PasswordService.php
2014-10-18 18:48:17 +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);
}
}