error handling for get_encryption