Improve password hashes, made amount configurable.

Fixes #194. Thanks, @ircmaxell!