Checks for encryption