Added can_encrypt check
Merge pull request #471 from sreeram-boyapati/encryption

Added can_encrypt check