You can use the htpasswd command to create username and encrypted password for .htpasswd files.
Note: NEVER user online tools to encypt passwords, this is NOT safe.
-c = Create the passwdfile. If passwdfile already exists, it is rewritten and truncated. This option cannot be combined with the -n option.
htpasswd /path/to/file/.htpasswd usernameYou will then be prompted to enter a password that will be encrypted
htpasswd -c /new/path/.htpasswd usernameYou will then be prompted to enter a password that will be encrypted