Store main password as sha1

Solves #1