.htpasswd files use crypt(3) to generate encryptions, and this script will do it for you without UNIX or an online script! Provided in .js format for your convenience.
The JavaScript Source: Password Protection: UNIX crypt(3) encryption
Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Command-s). The script is yours!!!