Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • Would there be a way to add it to the keyring? Commented Mar 19, 2018 at 21:46
  • @Mashimom Yes, Gilles's answer suggests this approach. Commented Sep 24, 2019 at 19:26
  • This is a partial solution, no? In the end, your environment will still contain your username and password as plain text, so simply issuing env would expose them. Commented Jul 8, 2022 at 7:56
  • @TonvandenHeuvel No, using this your environment will have an encrypted version of your username and password. Why do you think it will be unencrypted? If the wording is unclear I can try to improve the answer. (But I suggest you don't use this approach since it's still pretty insecure.) Commented Jul 13, 2022 at 19:44
  • Ah yes, I missed the base64 encoding...indeed, still pretty insecure. In the end I went with wrapper scripts around processes that require proxy authentication. It still allows inspection of the proxy password by checking the environment of running processes through /proc, but it is the best I could come up with. Commented Jul 14, 2022 at 9:37