Added password encryption (fixes #1)