Boarding pass barcode stands for Bar Coded Boarding Pass (BCBP).
Airlines use one standard, IATA Resolution 792, so a scanner at any airport can read any airline's pass. Printed passes usually carry a PDF417 code, the wide rectangular one made of stacked rows; phones show a square Aztec, QR or Datamatrix code, which suit screens better. The data isn't encrypted: any barcode app can read it.
Inside is a line of text. The mandatory part holds the name as SURNAME/GIVEN NAME, the booking reference, the from and to airport codes, the airline code and flight number, the date as a day of the year (327 is 23 November, outside leap years), the cabin, the seat, the check-in sequence number and a passenger status. Optional fields can add the ticket number, frequent flyer number, bag tag numbers and, when US travel is involved, a security screening indicator.
That's why posting a boarding pass online is a bad idea. The surname and booking reference in the code are often enough to open the booking, see personal details and change or cancel flights, and a photo reads just as well as the paper.
At security and the gate, the flight, date, departure airport and sequence number identify one pass, which is how a pass scanned twice gets spotted. The boarding pass decoder reads the fields out of one.
SMITH/ALEX · R4TZ8P · LHR to JFK · BA 0117 · day 327 · cabin Y · seat 023A · sequence 0042
Where you'll find it
The large square or rectangular code on a printed or mobile boarding pass. Some e-ticket receipts carry one in the same format, marked as a receipt rather than a pass.