How is electromagnet used in credit cards?

The strip on the back of a credit card is made up of a lot of magnetic particles which identifies and contains account information.