If you are on Ubuntu and do not want to install htpasswd, SSH into your server
htpasswd -n id
You will be prompted, twice, for a password. The key will be generated on screen
-n: generate key on screen
id: chosen id
password: chosen pw
code will be generated, add this to password file
Notes:
password file not available from FTP
Brute Force Attacks
htpasswd