18
votes
Game Giveaway: The Price is Right Edition
Welcome to a special giveaway!
Instead of a specific game or a lottery system you will need to guess the pre-determined amount ($X) I've allocated for the giveaway. You can submit a guess by listing any number of games and their prices (include a total in USD) in a top-level comment in this post by the time this post is 48 hours old. The total cost of all games can not exceed $X! The commenter who comes the closest without going over $X will win each game in their list. If there is a tie the first commenter will win.
Good luck!
For verification purposes, here is the salted hash of $X: 6879e144663fc05aacacbd7daf8614aa
Extra info:
- Exclude taxes
- If your local currency is not USD please convert the total to USD after getting the total for your local currency
- Please include sale price discounts
Example (from @psi):
Game | Platform | Cost |
---|---|---|
Shadows Over Loathing | Steam | $22.99 |
Vampire Survivors | Steam | $4.99 |
Monster Hunter Stories 2: Wings of Ruin | eShop | $19.79 |
Total | $47.77 |
@hkc COME ON UP!!!
Salted $X string: The correct price is: $53.25
WINNER WINNER CHICKEN DINNER
I'm thrilled. Thank you for organising this giveaway!
Congratulations!
Thank you.
$1, Bob! - Reigns: PC Edition
::Dirty looks from the rest of Contestant Row::
I almost didn't enter because I already have too many games and don't need a giveaway, but I also understand that this event is way more fun if more people join! Plus, I just got a roomscale VR setup, I grew up playing and loving ping pong, and @blender_cuttingham recommended this to me and it looks like something I'd love and sink a lot of time into.
By the way, this is the coolest and most interesting post idea I've seen in a long time. I'm hoping a lot more people join in.
Thanks! :D
Now that it’s over (congrats @hkc!), can someone explain how the hash and salt works? I wanted to ask beforehand but didn’t want to make it look like I was trying to crack the answer.
Now that the string has been released, how could I verify it for myself? Not that I don’t trust @teaearlgraycold, I’m just curious about the process.
A hash function is a "one way function". You put a string in, get a different string out, but there does not exist an inverse function. That's because hash functions can take in an unlimited amount of data, but always output only a few bytes. So for a given output (ex:
6879e144663fc05aacacbd7daf8614aa
) you'll have multiple possible inputs that can produce it.If a website wants to verify someone knows their password they'll store an initial hash of the password during account registration. Then when the user returns and types in their password to sign in the site will hash the password and compare the hashes. You can verify the input is the same as during registration if the hashes match. The benefit here is the website isn't storing the password. So if the database gets leaked hackers won't know what the passwords are.
In order to allow for verification that the amount in this giveaway was pre-determined I hashed the dollar amount. But even though hashes are one-way functions you can reverse them when you know there's only a small number of possible inputs. So if I hashed something in the format of
$53.25
, and an adversary knew that's what I did, they could get hashes for every dollar amount up to thousands of dollars and compare against the hash I listed. The solution is to add a salt to the input -The correct price is:
. As long as the adversary doesn't know the salt (to be fair it's not a very secure salt because it's semantically related to the post) then you can safely have the rest of the input be very predictable. What's cool is the salt can be as long as you want. I could have stuck an entire book at the beginning of the input. All that matters is when I come back with the full original input + salt it hashes to the value I originally posted.Edit: Thanks for the Exemplary, kind stranger!
Which hash function did you use? I've tried a couple and haven't found a match so far.
MD5. Sorry, should have included that originally.
Fantastic explanation. Thank you for that.
Also, for those curious, it does check out.
$24.99 -- Imagine Earth
$399.00 -- exactly the price of a steam deck :p Please don't actually give away something worth this much.
@teaearlgraycold, maybe you can extend this contest by a day or two and also give an example? It might be worth clarifying whether one should include the discounted price and which platforms are possible. I assume a valid entry would be something like the following?
Good idea. I stole your table and extended to 48 hours. Although now my verification hash is under an edited topic. You'll all just have to trust me.
I archived the page before you edited it, for verification purposes!
$74.98
Sad to have missed this!