Campus ID News
Card, mobile credential, payment and security
Magstripes 2 e1643136688746

Library number generation

Chris Corum   ||   Apr 01, 2002  ||   ,

The following process shows one method for generating library numbers from the student ID encoded on the mag stripe. In this case the institutions existing system utilizes a 14-digit barcode and the unique ID number encoded on the magnetic stripe of the card is a 16-digit ISO number. Other scenarios exist, but function in much the same way.

  1. The card is swiped through the magnetic stripe reader, and the 16-digit number is captured. Example - “1234 5678 9012 3456”
  2. In an ISO numbering scheme the first 6 digits identify the card issuer (e.g. the bank, the school) and are the same for all cardholders. The reader strips away these first six leaving 10 remaining digits that form a unique number that identifies only one cardholder. Example - “78 9012 3456”
  3. The reader adds a single digit that is the identifier used in the existing library system to denote a patron (rather than a book or resource) and places it in the first position. - Example “2”
  4. Next, the reader adds a 2 digit code that is the identifier used in the existing system to denote the specific library location. Example - “09”
  5. Now we have created a 13-digit number. The final step is for the reader to perform a mathematical calculation using the previous 13 digits. This calculation, called a mod ten check digit calculation, creates a final digit to append to the end of the number. Example - “0”
  6. The pieces are put together to form a 14 digit ID number that provides the same meaningful data to the system as was previously supplied by the barcode. Example - “2 09 78 9012 3456 0”

The system had been geared to accept a 14 digit number read from the barcode. In this new model, the mag stripe and reader provide a unique 14 digit number. The actual library numbers have changed (and will require that the new numbers replace the old numbers in the library database), but the form is the same so the existing system requires no software alteration. Voila!

For more details on this process, see Using your card for patron ID.

Subscribe to our weekly newsletter


Sign saying show your ID card
Sep 29, 23 /

DePaul requires students to carry campus ID at all times on campus

Following a string of robberies on or near campus the Lincoln Park campus, DePaul University initiated a plan to tighten security. Part of the plan requires students, faculty, and staff to carry their DePaul ID at all times on campus. “Public safety officers will have the authority to remove anyone from a DePaul building who […]
Dawn Thomas, NACCU CEO, video on NACCU Near You event series
Sep 27, 23 /

CampusIDChat: NACCU launches regional NACCU Near You event series

In this edition of CampusIDChats, publisher Chris Corum catches up with Dawn Thomas, NACCU CEO, to learn about the upcoming NACCU Near You events series. Sometimes traveling to a conference is challenging due to schedules, budgets, and workloads. That is where the NACCU Near You events series fills a void. These one-day regional events offer […]
Penn State mobile credential banner
Sep 26, 23 / ,

Penn State’s mobile credential program serves students on 24 unique campuses with 81% adoption rate

  At the beginning of 2023, Penn State rolled out Transact Mobile Credential to students, faculty, and staff. Among mobile credential programs, this one stands out because it was rolled out simultaneously across all 24 campuses of Penn State. In partnership with Transact, the campus team faced a unique set of challenges presented by this […]
CIDN logo reversed
The only publication dedicated to the use of campus cards, mobile credentials, identity and security technology in the education market. CampusIDNews – formerly CR80News – has served more than 6,500 subscribers for more than two decades.

Join us, @NACCUorg, and @TouchNet to explore how campus card programs can successfully navigate the sales and procurement process. Join the webinar on June 6, 2 pm EDT.

Webinar: Learn how the University of Arizona uses campus cards, mobile ordering, kiosks, lockers, and robots to revolutionize campus dining. April 7, 2-2:30 EDT. Register Now at

Load More...
CampusIDNews is published by AVISIAN Publishing
315 E. Georgia St.
Tallahassee, FL 32301[email protected]
Use our contact form to submit tips, corrections, or questions to our team.
©2023 CampusIDNews. All rights reserved.