If you need to charge your devices in public, opt for your own charger and cable, a portable power bank or a USB data-blocker to prevent any data transfer while charging.