From ed01515af109e3c57488b830e162f7444f6ebfa6 Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Mon, 14 Dec 2020 12:11:10 -0500 Subject: [PATCH] FAQ.md: Add mention of hashedPassword (#2453) Closes #2451 --- doc/FAQ.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/doc/FAQ.md b/doc/FAQ.md index 5b334b60..8e1e32a7 100644 --- a/doc/FAQ.md +++ b/doc/FAQ.md @@ -11,6 +11,7 @@ - [Where are extensions stored?](#where-are-extensions-stored) - [How is this different from VS Code Codespaces?](#how-is-this-different-from-vs-code-codespaces) - [How should I expose code-server to the internet?](#how-should-i-expose-code-server-to-the-internet) +- [Can I store my password hashed?](#can-i-store-my-password-hashed) - [How do I securely access web services?](#how-do-i-securely-access-web-services) - [Sub-paths](#sub-paths) - [Sub-domains](#sub-domains) @@ -159,6 +160,16 @@ for free. Again, please follow [./guide.md](./guide.md) for our recommendations on setting up and using code-server. +## Can I store my password hashed? + +Yes you can! Use `hashedPassword` instead of `password`. Generate the hash with: + +``` +echo "thisismypassword" | sha256sum | cut -d' ' -f1 +``` + +Of course replace `"thisismypassword"` with your actual password. + ## How do I securely access web services? code-server is capable of proxying to any port using either a subdomain or a