Posted in

How does an applet work on a smart card?

Hey there, ever pulled out a payment card to buy coffee, or unlocked your phone with one of those little chip cards, and wondered what’s actually going on under that plastic? As someone who’s built smart cards for over a decade (yep, that’s me from the team behind the cards you probably use every day), let’s cut through the jargon and walk you through how a tiny applet on a smart card actually works. No boring textbooks, just real talk from someone who’s sold thousands of these things and troubleshot every weird glitch that comes with them. Smart Card

First, let’s get one thing straight: a smart card isn’t just a plastic rectangle with a chip. That chip is a full-on tiny computer. We’re talking a CPU, some RAM, non-volatile memory (so it doesn’t forget stuff when you turn the power off), and even a little crypto processor built in to keep things secure. The applet? That’s the tiny program you load onto that chip—think of it like an app on your phone, but way smaller, way more secure, and never crashes (we work really hard on that).

Let’s start with how that applet even gets onto the card in the first place. You can’t just download it from the App Store, let’s be real. The first step is when we, as the card vendor, personalize the card before it even gets to a customer. Say a bank wants to launch a contactless payment card—they don’t send us a bunch of blank chips and say “put Visa on these.” We work with the card scheme (Visa, Mastercard, whatever) first to get the official applet code. That code is already written to follow super strict rules—like how to process payments, how to talk to card readers, how not to leak user data. We sign that code with our vendor’s private key (more on why that’s important later) so the card knows it’s legit.

Then, when we manufacture the card, we load that signed applet onto the chip’s non-volatile memory (we call this EEPROM, in case you want to sound like you know what you’re talking about). Wait, but why can’t you just load any app? Smart cards are designed to be super locked down. We have something called a card operating system (COS)—that’s the brain that runs everything. The COS controls access to memory, processes commands from the reader, and makes sure only approved code runs. When you try to load an applet, the COS checks the signature on the applet code. If it doesn’t match the vendor’s public key (the pair we used to sign it), the COS just rejects it—no questions asked. That’s how we stop hackers from loading their own fake apps that steal your data.

Okay, so the applet is on the card. Now what? Let’s use that payment card example because it’s something everyone gets. When you tap your card at a register, the terminal (that’s the card reader) sends a command to the card. That command is something like “Process payment for $4.99.” The applet doesn’t just handle that alone—talks to the COS first. The COS checks if the command is allowed right now: is the card locked? Did the user enter their PIN? Is this a transaction within the applet’s rules?

Once the COS gives the okay, the applet does its thing. It calculates a bunch of numbers using that built-in crypto processor—this is how it keeps the transaction secure. No actual credit card numbers get sent over the air, which is why contactless payments are safe even if someone is snooping. The applet also checks its own memory to make sure it has enough funds, or that the transaction hasn’t already been processed before (that’s called a duplicate check, super important to stop fraud).

Wait, what if you have more than one app on your card? A lot of people don’t know this, but many smart cards have multiple applets. Your bank payment app, a loyalty app from your favorite grocery store, maybe even a digital ID app all living on the same card. The COS is what keeps them separate. Each applet has its own little “safe zone” in memory, so the grocery store loyalty app can’t sneak a peek at your bank transaction data. The COS uses access control rules to make sure only the right commands can talk to each app. For example, only a payment terminal can talk to the payment app, not a random grocery store reader.

Let’s talk about a common mistake we see new customers make—they think the applet is stored on the card forever. Well, mostly, but there are little quirks. RAM is temporary, so when the card is powered off (which it is most of the time), all the data being processed goes back to EEPROM, which is non-volatile. But applets can be updated too! Like, if a payment scheme changes their security rules, we can send an update to the card. The COS will check the signature on the new applet update, make sure it’s approved, and overwrite the old applet code with the new one. We test these updates so they don’t corrupt the card or brick it—bricked cards are the worst, trust me, we’ve had to fix way too many early on.

Another thing that makes applets on smart cards different from phone apps: they’re way smaller. A typical phone app is like 50MB or more. A smart card applet is often less than 50KB— that’s 1/1000th the size. We have to code them super efficiently, cut out every unnecessary line, just to fit. And they can’t have a lot of fancy features, obviously—no push notifications, no camera access—but they don’t need to. Their whole job is secure, reliable, and simple.

Wait, let’s get into security because that’s the whole point of smart cards, right? The applet has its own set of security rules. For example, if you enter your PIN wrong three times, the applet locks itself down—you have to use a PUK code to unlock it, and even then, we set a limit on how many times you can try the PUK too, to stop brute force attacks. The applet also never sends your private keys out of the card. All the encryption happens on the chip, so even if someone can listen in on the transaction, they can’t get the key to decode it. That’s why smart cards are way more secure than magnetic stripe cards—those just store all your data in plain text, easy to skim. As a vendor, we spend most of our time testing applets for vulnerabilities, working with the card schemes to patch any holes before they get released.

Let me give you a real example of how this works in action. Last year, a regional bank came to us with a problem—their old card applets were crashing when they processed transactions above $100. Turns out, a tiny bug in how the applet calculated the transaction amount caused an overflow error. The bank needed a fix in 2 weeks, super tight timeline. Our team checked the existing applet code, found the bug, wrote a small update, signed it, and personalized the new cards with the fixed applet. No other vendor could pull that off that fast, which is why they came back to us for their new contactless card launch later that year. That’s the kind of real stuff we deal with every day, not just theoretical tech.

Now, common myths: some people think the applet stores all your data, like your full name and address. No, most of that is stored on a central server from the bank or card provider. The applet just stores the unique cryptographic keys it needs to prove it’s a legitimate card. It’s like a digital signature, only the applet can make that signature, so the terminal knows it’s talking to a real card, not a fake one.

Another myth: you can hack a smart card applet easily. We’ve seen guys try, but it’s way harder than hacking a website. The chip has hardware-level security features, like memory scrambling, so if someone tries to probe the chip to read the data, it destroys itself. The applet’s code is obfuscated so even if someone somehow gets a copy, they can’t reverse engineer it. We do penetration testing with third-party firms to make sure our applets hold up against all kinds of attacks.

So let’s wrap this up, to make sure you didn’t get lost in all the tech. Here’s the step-by-step, super simple breakdown of how an applet on a smart card works:

  1. We work with the card provider to get the official, approved applet code, sign it with our secure key, and load it onto the card’s chip during manufacturing.
  2. The card’s operating system (COS) is the gatekeeper— it checks that all code is legit, controls access to memory, and approves all commands from card readers/terminals.
  3. When the card is powered on (tapped, inserted into a reader), the applet responds to specific commands, processes the task (payment, ID check, etc.), using the built-in crypto for security.
  4. Multiple applets can live on one card, each with their own secure memory zone, so they never interfere with each other.
  5. Applets can be updated securely when needed, and have built-in locks and safeguards to prevent fraud or tampering.

This is why smart cards are still the go-to for payments, government IDs, access control, all that stuff. They’re not just plastic and metal—they’re tiny, secure computers that work quietly to keep your data safe every single day.

If you’re a business looking to launch your own smart card program—whether it’s payment cards, employee access cards, government IDs, or anything in between—we can help you design the right applet, test it for security, and manufacture the cards you need. We’ve worked with small businesses and large enterprises, so we can tailor a solution that fits your timeline and budget. Hit us up to start the conversation about your next smart card project.

Epoxy RFID Tag References

  • ISO/IEC 7816: Identification cards — Integrated circuit cards
  • Federal Information Processing Standard (FIPS) 140-3: Security Requirements for Cryptographic Modules
  • GlobalPlatform Card Specification: Secure Element and Card OS Standards
  • Smart Card Alliance: "How Smart Card Applets Work" (2022)
  • Jouga, L., et al.: "Security of Smart Card Applets: Common Vulnerabilities and Mitigations" (2021)

Shenzhen Razlon Technology Co., Ltd.
Shenzhen Razlon Technology Co., Ltd. is one of the most professional smart card manufacturers and suppliers in China, specialized in providing high quality customized service. If you’re going to buy or wholesale bulk smart card in stock, welcome to get quotation and free sample from our factory. For price consultation, contact us.
Address: No. 5 , Lin Chun, Xisheng Street, Tangxia Town, Dongguan City China. 523711
E-mail: Rachel@razlon.com
WebSite: https://www.razloncard.com/