blessing-skin-server/app/Services/Cipher/SALTED2MD5.php
2017-01-08 10:48:46 +08:00

15 lines
229 B
PHP

<?php
namespace App\Services\Cipher;
class SALTED2MD5 implements EncryptInterface
{
/**
* MD5 hash with salt
*/
public function encrypt($value, $salt = "")
{
return md5(md5($value).$salt);
}
}