blessing-skin-server/app/Services/Cipher/SALTED2SHA512.php
2020-06-02 15:46:04 +08:00

12 lines
208 B
PHP

<?php
namespace App\Services\Cipher;
class SALTED2SHA512 extends BaseCipher
{
public function hash($value, $salt = ''): string
{
return hash('sha512', hash('sha512', $value).$salt);
}
}