The credit-card industry is accelerating efforts to keep sensitive customer information out of the hands of merchants, as a rash of data breaches at major U.S. retailers erodes confidence in electronic payment systems.

Visa Inc. and MasterCard Inc. are rolling out technology that replaces cardholder information such as account numbers and expiration dates with a unique series of numbers that validates the customer's identity.

The...