It creates a one time, transaction specific, encrypted code and your card is never in the machine. Chip is nearly as secure. No one should be swiping their card anymore, it’s the least secure and most vulnerable. Everyone should also have the apps for their cards on their phones with alerts turned on so that you can shut down your cards in a heartbeat if necessary.