blessing-skin-server/app/Services/Cipher/SALTED2SHA512.php

12 lines
208 B
PHP
Raw Normal View History

2016-10-30 14:12:22 +08:00
<?php
namespace App\Services\Cipher;
class SALTED2SHA512 extends BaseCipher
2016-10-30 14:12:22 +08:00
{
2020-06-02 15:46:04 +08:00
public function hash($value, $salt = ''): string
2017-01-08 10:48:46 +08:00
{
return hash('sha512', hash('sha512', $value).$salt);
2016-10-30 14:12:22 +08:00
}
}