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