blessing-skin-server/app/Services/Cipher/SHA512.php
2016-10-30 14:12:22 +08:00

18 lines
334 B
PHP

<?php
namespace App\Services\Cipher;
class SHA256 implements EncryptInterface
{
/**
* Default SHA256 encryption method for Authme
*
* @see http://pastebin.com/1wy9g2HT
*/
public function encrypt($raw_passwd, $salt = "") {
$encrypt = hash('sha512', $raw_passwd);
return $encrypt;
}
}