Added check conditions for passphrase at encryption and decryption.