Card security code

From Wikipedia, the free encyclopedia
  (Redirected from Card Verification Code)
Jump to navigation Jump to search

The card security code is located on the back of Mastercard, Visa, Discover, Diners Club, and JCB credit or debit cards and is typically a separate group of three digits to the right of the signature strip
On American Express cards, the card security code is a printed, not embossed, group of four digits on the front towards the right

A card security code (CSC; also known by several other names) is a series of numbers that, in addition to the bank card number, is embossed or printed on a card. The CSC is used as a security feature for card not present transactions, where a personal identification number (PIN) cannot be manually entered by the cardholder (as they would during point-of-sale or card present transactions). It was instituted to reduce the incidence of credit card fraud.

These codes are in slightly different places for different card issuers. The CVV for Visa, Mastercard, and Discover credit cards is a three-digit number on the back of your card, to the right of the signature box. The CVV for American Express (also known as CID or Card Identification Number) is a four-digit code on the front of the card above the account number. See the figures to the right for examples.

CSC was originally developed in the UK as an eleven-character alphanumeric code by Equifax employee Michael Stone in 1995. After testing with the Littlewoods Home Shopping group and NatWest bank, the concept was adopted by the UK Association for Payment Clearing Services (APACS) and streamlined to the three-digit code known today. Mastercard started issuing CVC2 numbers in 1997 and Visa in the United States issued them by 2001. American Express started to use the CSC in 1999, in response to growing Internet transactions and card member complaints of spending interruptions when the security of a card has been brought into question.

Contactless card and chip cards may electronically generate their own code, such as iCVV or a dynamic CVV.


The codes have different names:

  • "CAV" or "card authentication value": JCB
  • "CID": "card ID", "card identification number", or "card identification code": Discover, American Express (four digits on front of card). American Express usually uses the four-digit code on the front of the card, referred to as the card identification code (CID), but also has a three-digit code on the back of the card, referred to as the card security code (CSC). American Express also sometimes refers to a "unique card code".[1]
  • "CSC" or "card security code": debit cards,[which?] American Express (three digits on back of card, also referred to as 3CSC)[2]
  • "CVC" or "card validation code": Mastercard
  • "CVD" or "card verification data": Discover
  • "CVE" or "Elo verification code": Elo in Brazil
  • "CVN" or "card validation number": China UnionPay
  • "CVV" or "card verification value": Visa
  • "SPC" or "signature panel code"[3]


There are several types of security codes and PVV (all generated from DES key in the bank in HSM modules using PAN, expiration date and service code):

  • The first code, 3 numbers, called CVC1 or CVV1, is encoded on track one and two of the magnetic stripe of the card and used for card present transactions, with signature (second track also contains pin verification value, PVV, but now it is usually all zeroed out and service code). The purpose of the code is to verify that a payment card is actually in the hand of the merchant (thus it should be different from CVV2). This code is automatically retrieved when the magnetic stripe of a card is read (swiped) on a point-of-sale (card present) device and is verified by the issuer. A limitation is that if the entire card has been duplicated and the magnetic stripe copied, then the code is still valid, even though you usually need to sign after that. (See credit card fraud § skimming.)
  • The second code, and the most cited, is CVV2 or CVC2. This code is often used by merchants for card not present transactions including online purchases. In some countries in Western Europe, card issuers require a merchant to obtain the code when the cardholder is not present in person. Uses service code 000.
  • Contactless and/or chip EMV cards supply their own electronically generated codes, called iCVV. Uses service code 999. It is described in public standards from EMVCo.
  • Consumer Device Cardholder Verification method (CDCVM; for example Apple Pay, Google Pay, Samsung Pay, different apps with support for device crypto trust engine) deprecated use for PIN and CVC, now the smart device (smart watch, smartphone, etc.) needs to be unlocked, and the operation with any sum is done without PIN if the POS terminal supports CDCVM. The amount of operation is also shown on your device before you unlock to purchase. Also online purchases are supported. The fallbacks to CVC or PIN are supported.


The card security code is typically the last three or four digits printed, not embossed like the card number, on the signature strip on the back of the card. On American Express cards, however, the card security code is the four digits printed (not embossed) on the front towards the right. The card security code is not encoded on the magnetic stripe but is printed flat.

  • American Express cards have a four-digit code printed on the front side of the card above the number.
  • Diners Club, Discover, JCB, Mastercard, and Visa credit and debit cards have a three-digit card security code. The code is the final group of numbers printed on the back signature panel of the card.
  • New North American Mastercard and Visa cards feature the code in a separate panel to the right of the signature strip.[4] This has been done to prevent overwriting of the numbers by signing the card.


The CSC for each card (form 1 and 2) is generated by the card issuer when the card is issued. It is calculated by encrypting the bank card number and expiration date (two fields printed on the card) with encryption keys known only to the card issuer, and decimalising the result.[5][6][7]

Benefits and limitations[edit]

As a security measure, merchants who require the CVV2 for "card not present" transactions are required by the card issuer not to store the CVV2 once the individual transaction is authorized.[8] This way, if a database of transactions is compromised, the CVV2 is not present and the stolen card numbers are less useful. Virtual terminals and payment gateways do not store the CVV2 code; therefore, employees and customer service representatives with access to these web-based payment interfaces, who otherwise have access to complete card numbers, expiration dates, and other information, still lack the CVV2 code.

The Payment Card Industry Data Security Standard (PCI DSS) also prohibits the storage of CSC (and other sensitive authorisation data) post transaction authorisation. This applies globally to anyone who stores, processes or transmits card holder data.[9] Since the CSC is not contained on the magnetic stripe of the card, it is not typically included in the transaction when the card is used face to face at a merchant. However, some merchants in North America, such as Sears and Staples, require the code. For American Express cards, this has been an invariable practice (for "card not present" transactions) in European Union (EU) countries like Ireland and the United Kingdom since the start of 2005. This provides a level of protection to the bank/cardholder, in that a fraudulent merchant or employee cannot simply capture the magnetic stripe details of a card and use them later for "card not present" purchases over the phone, mail order or Internet. To do this, a merchant or its employee would also have to note the CVV2 visually and record it, which is more likely to arouse the cardholder's suspicion.

Supplying the CSC code in a transaction is intended to verify that the customer has the card in their possession. Knowledge of the code proves that the customer has seen the card, or has seen a record made by somebody who saw the card.

Limitations include:

  • The use of the CSC cannot protect against phishing scams, where the cardholder is tricked into entering the CSC among other card details via a fraudulent website. The growth in phishing has reduced the real-world effectiveness of the CSC as an anti-fraud device. There is now also a scam where a phisher has already obtained the card account number (perhaps by hacking a merchant database or from a poorly designed receipt) and gives this information to the victims (lulling them into a false sense of security) before asking for the CSC (which is all that the phisher needs and the purpose of the scam in the first place).[10]
  • Since the CSC may not be stored by the merchant for any length of time[8] (after the original transaction in which the CSC was quoted and then authorized), a merchant who needs to regularly bill a card for a regular subscription would not be able to provide the code after the initial transaction. Payment gateways, however, have responded by adding "periodic bill" features as part of the authorization process.
  • Some card issuers do not use the CSC. However, transactions without CSC are possibly subjected to higher card processing cost to the merchants,[citation needed] and fraudulent transactions without CSC are more likely to be resolved in favour of the cardholder.[citation needed]
  • It is not mandatory for a merchant to require the security code for making a transaction, so the card may still be prone to fraud even if only its number is known to phishers. For example, Amazon requires only a card number and expiration date to complete a transaction.
  • It is possible for a fraudster to guess the CSC by using a distributed attack.[11]

See also[edit]


  1. ^ "American Express® Card security features" (PDF). Retrieved 4 May 2021.
  2. ^ "SafeKey Frequently Asked Questions | American Express Canada". Retrieved 4 May 2021.
  3. ^ "CIBC MasterCard - MasterCard SecureCode". Archived from the original on 24 April 2014. Retrieved 12 July 2012.
  4. ^ "Card Security Features" (PDF). Visa. Archived from the original (PDF) on 16 February 2012.
  5. ^ "VISA PIN Algorithms". 18 September 2012. Retrieved 18 June 2021.
  6. ^ "z/OS Integrated Cryptographic Service Facility Application Programmer's Guide". IBM. March 2002. p. 209.
  7. ^ "z/OS Integrated Cryptographic Service Facility Application Programmer's Guide". IBM. March 2002. p. 258.[dead link]
  8. ^ a b "Rules for Visa Merchants". p. 1. Archived from the original (doc) on 24 February 2014. Retrieved 26 February 2013.
  9. ^ "Official Source of PCI DSS Data Security Standards Documents and Payment Card Compliance Guidelines". Retrieved 25 December 2011.
  10. ^ "Urban Legends Reference Pages: Visa Fraud Investigation Scam". Retrieved 25 December 2011.
  11. ^ Ducklin, Paul (5 December 2016). "How to guess credit card security codes". naked security by SOPHOS. Retrieved 8 December 2016.