You can use this form to generate crypt() style DES and MD5 password hashes in your browser:

Password:
(again:)
DES Salt:
MD5 Salt:
Waiting for code to initialize...
DES Crypt: -------------
MD5 Crypt: $1$--------$---------------------- (slow)

Security Note

Everything on this page is being done entirely on the client end using JavaScript. Your plaintext password is not being sent anywhere.

Security Note

Generating a random salt uses the pseudo-random number generator in your browser so chances are it's not using cryptographically secure randomness. If this bothers you, enter your own salt.

Source

You can get a JavaScript implementation of DES crypt and MD5 crypt from here.