boolean public static \Bitrix\Main\Entity\DataManager::cryptoEnabled( string $field );
This static method returns true when encoding for a field is permitted.