blessing-skin-server/app/Services/Cipher/SALTED2MD5.php
2016-07-21 22:01:57 +08:00

12 lines
222 B
PHP

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