blessing-skin-server/app/Services/Cipher/SALTED2SHA256.php
Pig Fang 3cf19d8656
Apply fixes from StyleCI (#11)
This pull request applies code style fixes from an analysis carried out by [StyleCI](https://github.styleci.io).

---

For more information, click [here](https://github.styleci.io/analyses/8wKwbZ).
2019-03-02 22:58:37 +08:00

15 lines
246 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);
}
}