blessing-skin-server/app/Services/Cipher/SALTED2SHA512.php
2018-02-16 17:31:10 +08:00

15 lines
245 B
PHP

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