Create Apache htpasswd lines entirely in the browser using {SHA} Base64(SHA-1) via Web Crypto.
Apache {SHA} is SHA-1 of the password, then Base64 — unsalted and legacy.
bcrypt ($2y$) is stronger but needs a dedicated implementation; this page stays zero-dependency
and uses Web Crypto only. Do not use {SHA} for new internet-facing logins if you can use bcrypt/argon2 on the server.