It’s quite possible that you buy a subpar USB Type-C cable that can damage your devices. The USB Implementer Forum (USB-IF) is trying to protect your devices from rogue cables with the USB Type-C Authentication specification. The specification has been announced today at the Intel Developer Forum in Shenzhen, China.
If your device (mobile, laptop etc.) supports the specification, it will be able to verify the accessories (your charger, power adapter or data cable) and tell whether those accessories have been fully certified by USB-IF. Using 128-bit encryption, this data is sent to the host before any data or power connection is established. This specification will work even if the charger and cable only provide power, not a data connection.
This authentication specification is also aimed to fight malware and other acts that use USB to attack or infect systems. According to USB-IF the spec “references existing internationally-accepted cryptographic methods for certificate format, digital signing, hash and random number generation,” so it must be relatively easy to implement in accessories.
Also, a minor “developer-only update” was made to the USB Power Delivery spec. This system should be implemented and adopted b the USB-C cable maker as soon as possible. It might make those cables a bit expensive, but it will keep your more expensive hardware safe.