Added support for passphrases

Fixes #1