The Math Hack You Didn’t Know Was in Your Credit Card (www.scientificamerican.com)
from Powderhorn@beehaw.org to technology@beehaw.org on 12 Aug 2025 22:57
https://beehaw.org/post/21594318

I’ve been familiar with the concept, but this is by far the best behind-the-scenes explanation I’ve seen.

#technology

threaded - newest

adespoton@lemmy.ca on 12 Aug 2025 23:09 next collapse

I’m insulted they thought I didn’t know what a LUHN check is.

Of course, my current credit cards don’t even have a magnetic stripe, so the original purpose for the check digits is history. Still useful for other situations where the number might get garbled though.

The other thing useful about credit cards is that the first set of digits refer to the issuer, not your account. Once you strip off the issuer code and the check digit, there’s much less that’s unique to your card.

cmnybo@discuss.tchncs.de on 13 Aug 2025 02:02 collapse

The check digit is to catch a mistyped number.

Brad@beehaw.org on 12 Aug 2025 23:11 next collapse

A car’s 17-digit VIN has a similar feature, for model years since 1981.

The 9th digit is the check digit, and it’s a much more complex algorithm (since the VIN can have numbers and letters.)

walden@sub.wetshaving.social on 12 Aug 2025 23:25 next collapse

That’s pretty neat. I was expecting something basic like “pay it off every month and there’s no interest”, but this was much more interesting.

It’s a method that web pages use to make sure you didn’t make a typo in the number.

maxprime@lemmy.ml on 12 Aug 2025 23:28 next collapse

It’s a similar idea to how some RAID configurations work.

who@feddit.org on 13 Aug 2025 01:58 next collapse

en.wikipedia.org/wiki/Checksum

bryndos@fedia.io on 13 Aug 2025 07:32 collapse

Presumptuous, smug, know it all, clickbait titles still didn't die?

Fuck me, if I were in America and had to read toss like that, I'd probably think the population of 'scientific' americans contains a larger than normal proportion of cunts.