Whenever this topic comes up I've argued that it's fraud. Suppose a retailer creates a code for a specific person that they have an agreement with for 20% off and you guess that code. You're thereby getting 20% off of the sale even though you weren't part of whatever agreement they have, effectively stealing 20% of the retailer's profit. Suppose you guess a one time use code that was created for someone else; you're stealing that person's discount. Answer from blahblahsdfsdfsdfsdf on reddit.com
🌐
Quora
quora.com › What-are-the-odds-of-guessing-an-Amazon-gift-card-code
What are the odds of guessing an Amazon gift card code? - Quora
Answer (1 of 3): Doris Arnold gave a nice answer discussion - but to get technical Back to basics - Given a couple of parameters, we can calculate the odds. How many characters are in the code (i.e. how long is it?) and what is the size of the character pool from which the characters are chosen...
🌐
Reddit
reddit.com › r/legaladviceofftopic › can you "guess" a gift card code on sites like amazon?
r/legaladviceofftopic on Reddit: Can you "guess" a gift card code on sites like Amazon?
January 19, 2020 -

Say someone put in a bunch of random letters and numbers hoping by chance to guess the code of an existing gift card that they don't actually have, and it turned out to be a valid code. Is anything stopping them from going ahead and using it for themselves?

For example if someone else buys it and then tries to redeem it, they wouldn't be able to, so what options would be at their disposal?

Who would investigate something like that, the bank or the company?

Top answer
1 of 13
15

The likelihood of two randomly generated code colliding is basically the same as a user guessing a valid code - and you cannot prevent users from guessing. So you must have a key space so much larger than the number of actually used codes that random collisions are extremely unlikely as well (though, thanks to the birthday paradox, probably not unlikely enough to ignore them completely, at least if you want your codes to be reasonably short), and checking against existing codes and re-generating in case of a collision is a perfectly viable strategy.

2 of 13
11

Use an N-bit serial number R, combined with an M-bit hash H of the concatenated pair (R, S) where S is some secret "salt" S which you do NOT publish. Then encode the pair (R,H) alphanumerically in any reversible way you like. If you like algorithms like MD5* or SHA, but the bit count is too high, then just take the M least significant bits of a standard hash algorithm.

You can verify easily: decode the alphanumeric encoding so you can see R and H. Then compute H' = hash(R+S) and verify that H = H'.

edit: R can be an incrementing serial number or random or whatever, just make sure you use each value not more than once.

*before someone says "MD5 is broken", let me remind you that the known weaknesses for MD5 are collision attacks, and not preimage attacks. Also, by using an unpublished, secret salt value, you deny an attacker the ability to test your security mechanism, unless he/she can guess the salt value. If you feel paranoid, pick two salt values Sprefix and Ssuffix, and calculate the hash of the concatenated triple (Sprefix,R,Ssuffix).

🌐
YouTube
youtube.com › watch
How to Find Your Amazon Gift Card Code. Here's Your Solution! - YouTube
Here's a quick and easy way to find your Amazon Gift Card Code. The gift card packet is baffling! Why doesn't the packet have any instructions? Well, your...
Published   December 13, 2022
Views   55K
🌐
Scoop Global
scoopglobal.co › home › finding your amazon gift card claim code: a quick guide + 4 faqs
How to Find Your Amazon Gift Card Claim Code - A Complete Guide
June 6, 2024 - Pro Tip: If you’re unsure about the format of your gift card (physical or digital), consult the email notification or accompanying message you received with the gift. 1. Where can I find the claim code on a physical Amazon gift card if there’s ...
🌐
Seller Interactive
sellerinteractive.com › home › blog › where is the claim code on an amazon gift card? + 4 common questions answered
Where Is The Claim Code On An Amazon Gift Card?
August 14, 2023 - Claim codes are unique combinations of numbers and letters corresponding to specific gift cards. Recipients must redeem these codes before using the card. In other words, claim codes serve as your customers’ keys to a locked treasure trove of delightful gifts. For Amazon Gift Cards, the claim codes are 14 characters.
🌐
JustAnswer
justanswer.com › general › r0u64-can-t-read-letters-numbers-gift-card-amazon.html
Amazon Gift Card Issues: How to Read Unclear Letters or Numbers
If part of your Amazon gift card code is unreadable, carefully check the card under good lighting. Contact Amazon customer service with the card’s purchase details and any visible code parts. They may verify and assist with redemption. Avoid sharing full codes publicly to protect your balance.
Find elsewhere
🌐
Voucherify
voucherify.io › generator
Free Random Codes Generator
Use real-time data to tailor offers to the user, their behavior, and context. One code can mean different things depending on who’s redeeming it, when, and where.
Rating: 4.6 ​ - ​ 21 votes
🌐
sfopera
pac.sfopera.com › blogs › news › how-to-get-a-free-amazon-gift-card-legit-methods-that-actually-work
How to Get a Free Amazon Gift Card: Legit Methods That Actually Work – sfopera
3 weeks ago - Remember: There's no such thing as a website that can generate legitimate, unused free Amazon gift card codes without some form of exchange.
🌐
Quora
quora.com › Is-there-anything-unlawful-about-using-a-bot-to-randomly-guess-Amazon-gift-card-codes
Is there anything unlawful about using a bot to randomly guess Amazon gift card codes? - Quora
Answer (1 of 15): OF COURSE. Even if you did not steal those, or hack Amazon to get them = you are in possession of them for monetary gains. In Las Vegas there was once a master mathematician form a known university that had a theory he could sit at any blackjack table and COUNT CARDS in order ...
🌐
Reddit
reddit.com › r/explainlikeimfive › eli5: why can't you guess a gift card code?
r/explainlikeimfive on Reddit: ELI5: Why can't you guess a gift card code?
December 18, 2014 -

I'm sure I'm not the only one that tried to do this when I was younger. Why can't you put in a random code for something like iTunes? Isn't there bound to be a gift card with that code on it out there somewhere?

🌐
Sermo
support.sermo.com › hc › en-us › articles › 15480988295835-What-does-an-amazon-gift-card-look-like-and-how-can-I-get-one
What does an amazon gift card look like and how can I get one? – Sermo
A gift card claim code is 14 or 15 characters long and will usually contain both letters and numbers (for example AS25-NJZ1JX-CZCP5).Click here to learn how to order an Amazon gift card. An el...
🌐
Amazon
amazon.ca › gift-card-code › s
Amazon.ca: Gift Card Code
Redeem Gift Cards · Check Gift Card balance · Gift Card Store · Help · Check each product page for other buying options. ... View or edit your browsing history After viewing product detail pages, look here to find an easy way to navigate back to pages that interest you.
🌐
Amazon
amazon.com › gift-card-claim-code › s
Amazon.com: Gift Card Claim Code
Redeem Gift Cards · Check Gift Card balance · Gift Card store · Help · Check each product page for other buying options. ... View or edit your browsing history After viewing product detail pages, look here to find an easy way to navigate back to pages you are interested in.
🌐
Amazon
amazon.com › gp › help › customer › display.html
Redeem an Amazon Gift Card - Amazon Customer Service
When you redeem an Amazon.com Gift ... packaging, the card will be the size and shape of a credit card. Find the claim code on the back of the card, under the peel-off sticker or the silver scratch-off section....
🌐
eMarspro
emarspro.com › home › amazon gift card claim code 101: locate, redeem, and spend
How to Locate Claim Code on an Amazon Gift Card?
April 3, 2025 - Usually, you receive two types ... Amazon Gift Card, you’ll discover the claim code hidden beneath a scratch-off or peel-off strip on the back of the card....
🌐
Tremendous
help.tremendous.com › hc › en-us › articles › 39979328005139-How-to-use-Amazon-gift-cards
How to use Amazon gift cards – Tremendous
Amazon gift card codes are 14 or 15 digits long, include both numbers and letters, and are formatted XXXX-XXXXXX-XXXX. If your code is 12 digits long, you may be entering your Tremendous reward ID instead of your Amazon gift card code.
🌐
JustAnswer
justanswer.com › software › rei4n-claim-code-gift-card-amazon-physical.html
Find Your Amazon Gift Card Claim Code - Quick Guide
The claim code on an Amazon physical gift card is typically found on the back, under a scratch-off panel. Gently scratch off the silver coating to reveal the code. This code is essential for redeeming the card online.