Add encryption detection support.