Added checks for encryption passphrase setting and file.