v1.0.0 RC 1

This commit is contained in:
2014-06-14 18:04:27 +02:00
parent 16387ca7d1
commit 8da730253d
109 changed files with 10834 additions and 8132 deletions

25
inc/auth.php Normal file
View File

@@ -0,0 +1,25 @@
<?php
/**
* Auth Class
* TODO move all auth related topics here
* @author lutranf
*
*/
class Auth
{
const ALGO = PASSWORD_DEFAULT;
const COST = 12;
public static function HashPassword($sPass)
{
return password_hash($sPass, self::ALGO, array('cost'=>self::COST));
}
public static function CheckPassword($sPass, $sHash)
{
return password_verify($sPass, $sHash);
}
}
?>