Skip to content
Skip to content

Feature

Wallet PIN security

Wallet IDs are short, so the PIN carries the weight. MelaOne makes guessing it pointless and gives staff fast tools when a card is lost.

The design problem

A Wallet ID like BM0042 is easy to read aloud and type — which also means IDs are guessable. The scanned QR token on the card is long and random, but a typed ID is short. So security cannot rest on the ID; it rests on the 4-digit PIN and on what happens when someone guesses wrong.

How PINs are stored

PINs are never stored in readable form. MelaOne stores a keyed hash (HMAC) computed with a secret held only on the server. A copy of the database alone is therefore not enough to recover PINs offline.

What happens after wrong attempts

  • Each wrong PIN is counted and the count is saved immediately, so refreshing the page does not reset it.
  • After the event's allowed number of failures the wallet locks.
  • Each further failure doubles the lock time (15 minutes, 30, an hour, two hours…), up to 24 hours.
  • Only a correct PIN, or a staff PIN reset, clears the counter.

Guessing a sequential ID and a few PINs therefore gets an attacker nowhere, while a visitor who misremembers once is only briefly inconvenienced.

Staff tools

  • Block / unblock a wallet (for example a lost card). A blocked wallet cannot spend.
  • Reset PIN at the recharge counter, with a new PIN chosen on the spot.
  • Replace card issues a new QR token and resets the PIN; the old QR stops working.
  • Reprint a card without changing anything.

None of these use quota, and each is recorded in the audit log.

Other protections around payment

Prices are set by the server, never by the phone. Payments are idempotent. A wallet payment is never approved offline. After a payment, the phone may keep a time-limited, view-only pass so the balance can be shown without the PIN; it can never spend and stops working when the PIN is reset or the card replaced.

What visitors should do

Choose a PIN that is not their birth year, do not share it, and tell the counter immediately if the card is lost.

Frequently asked questions

Can staff see a visitor’s PIN?

No. PINs are stored only as hashes and cannot be read back. Staff can set a new PIN, not view the old one.

What if a visitor forgets their PIN?

Any recharge operator or manager with the right permission can reset it at the counter.

Is a 4-digit PIN enough?

On its own, 4 digits is modest. That is why failures are counted, locks lengthen and cards can be blocked; the lock, not the digit count, is the real defence.

Does MelaOne claim any security certification?

No. We describe what the software does, and we make no claim of PCI, ISO or similar certification.

Ready to run your event cashless?

See MelaOne on your own setup, or create an organiser account and explore.