This is a command-line implementaton of the pwdhash algorithm in Go. It was mostly ported from the JavaScript version in the Firefox Add-on.
pwdhash <password> <domain>
http://crypto.stanford.edu/PwdHash/ https://addons.mozilla.org/en-US/firefox/addon/pwdhash/