Posted almost 5 years ago. Visible to the public.
create htpasswd entry and print to stdout
Create htpasswd entry and print to stdout:
Copy
$ sudo apt install apache2-utils # Optional
$ htpasswd -n $USERNAME
New password:
Re-type new password:
$USERNAME:<Password Hash>