Improves passwords security.
Fixes #310.