public function encrypt($raw_passwd, $salt = "") { $encrypt = md5(md5($raw_passwd) . $salt); return $encrypt; }