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

12 lines
222 B
PHP
Raw Normal View History

2016-07-21 22:01:57 +08:00
<?php
namespace App\Services\Cipher;
class SALTED2MD5 implements EncryptInterface
{
public function encrypt($raw_passwd, $salt = "") {
$encrypt = md5(md5($raw_passwd).$salt);
return $encrypt;
}
}