Coder Social home page Coder Social logo

Comments (4)

coinables avatar coinables commented on August 26, 2024

HarryR, thanks for sharing your techniques as this is the only way myself and other hobbyists (not professional) developers will learn. Personally, this seems like a lot of work to attempt to get some free satoshis from a faucet, but then again there are a lot of people out there who target faucets. Based on the amount of servers it already takes to brute-force my simple algo, wouldn't widening the space removing the time stamp, and adding more factors in a specific order in a HMAC do the trick?

$genSalt = mt_rand(10, 999999999);
$genSalt2 = mt_rand(10, 999999999);
$genSalt3 = mt_rand(10, 999999999);
$salt = hash_hmac("sha384", $genSalt, $genSalt2, $genSalt3);

from bitcoin-faucet-dice-faucet-box.

coinables avatar coinables commented on August 26, 2024

I've updated my working example using the method I mentioned above.

https://coinables.website/faucetbox

from bitcoin-faucet-dice-faucet-box.

coinables avatar coinables commented on August 26, 2024

Ok, so don't use mt_rand(); as it can be predictable.
Instead use a CSPRNG, something like bin2hex(openssl_random_psuedo_bytes(32));

Yes I suppose the server could make it so that it rolls numbers that have lower rewards, but any pattern that emerges to the users could also be a weakness for betting against it. In the end it's just a faucet that gives out free bitcoins, the user can not lose in that regard. If the user doesn't think it's fair they can go elsewhere. If it were actual real world betting the client side would absolutely need to be implemented.

from bitcoin-faucet-dice-faucet-box.

coinables avatar coinables commented on August 26, 2024

Thanks for your help. I will implement the change as soon as possible.

from bitcoin-faucet-dice-faucet-box.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.