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

15 lines
217 B
PHP
Raw Normal View History

2016-07-21 22:01:57 +08:00
<?php
namespace App\Services\Cipher;
class SALTED2MD5 extends BaseCipher
2016-07-21 22:01:57 +08:00
{
2017-01-08 10:48:46 +08:00
/**
* MD5 hash with salt
*/
public function hash($value, $salt = "")
2017-01-08 10:48:46 +08:00
{
return md5(md5($value).$salt);
2016-07-21 22:01:57 +08:00
}
}