blessing-skin-server/app/Services/Cipher/SHA256.php
2017-01-08 10:48:46 +08:00

15 lines
223 B
PHP

<?php
namespace App\Services\Cipher;
class SHA256 implements EncryptInterface
{
/**
* Once SHA256 hash
*/
public function encrypt($value, $salt = "")
{
return hash('sha256', $value);
}
}