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

15 lines
245 B
PHP

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