2016-10-30 14:12:22 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Services\Cipher;
|
|
|
|
|
2017-01-08 12:49:32 +08:00
|
|
|
class SHA512 extends BaseCipher
|
2016-10-30 14:12:22 +08:00
|
|
|
{
|
|
|
|
/**
|
2019-03-02 22:58:37 +08:00
|
|
|
* Once SHA512 hash.
|
2016-10-30 14:12:22 +08:00
|
|
|
*/
|
2019-03-02 22:58:37 +08:00
|
|
|
public function hash($value, $salt = '')
|
2017-01-08 10:48:46 +08:00
|
|
|
{
|
|
|
|
return hash('sha512', $value);
|
2016-10-30 14:12:22 +08:00
|
|
|
}
|
|
|
|
}
|