Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要使用 phpseclib 通过 SSH 连接到我的服务器,但显然我的服务器的密码对我来说是世界上最敏感的!在知道它是安全的情况下,如何在以下代码中使用它?
$ssh = new Net_SSH2('www.littleninjamedia.co.uk'); if (!$ssh->login('$username', '$password')) { exit('Login Failed'); }
我对散列和密码等有足够的了解,但我从来不需要保护一个真正重要的!有任何想法吗?
我找到了这个……这就是我认为我应该做的。
在 codeigniter 中处理密码
显然,这仅在您使用我使用的 codeigniter 时才有帮助。
如果您需要在 HTML POST 变量中输入密码并将 $_POST['password'] 传递给 $ssh 对象怎么办?