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