SHA 512 help im new to this!

5 pts.
Tags:
I don't know anything about coding and things like this, I'm a chemist so things like these are new for me. So this is taken from one gambling site for BTC. Can someone explain how this stuff works? And is it possible to generate next 5 digit number from this data? So there are 2 buttons in page hi-bet and lo-bet, and after you press one you get 5 digits and it need to be grater than 5250 or lower than 4750 to get 2x of BTC amount that you bet with Sorry for my English skills, I'm too old go back to school and learn it properly SEEDS FOR YOUR NEXT ROLL Server Seed Hash (SHA-256) 2c16a7f3a6221bced894ed02390471553faf6fab41485a9251 ee5858a64524ab Client Seed 025e5b2d79e68f415273adac597bd4df Nonce 3831 How are rolls calculated? Two strings are created : STRING1 = "[NONCE]:[SERVER SEED]:[NONCE]" STRING2 = "[NONCE]:[CLIENT SEED]:[NONCE]" Then HMAC-SHA512 is used to hash STRING1 with STRING2 giving us a 128 character hex string. The first 8 characters of the hex string are taken and converted to a decimal. This decimal is then divided by 429496.7296 and rounded up to the nearest whole number. This whole number is used as your roll, with the maximum possible value being 10,000.

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta

    Welcome to ITKE. English skills almost are no problem at all. Anyone who needs more clarification can ask for it, and you can always add to your own discussion if you are misunderstood.

    I don't know anything about coding and things like this...

    But that effectively makes a discussion impossible. I feel like apologizing, but the expectation of this forum is the questions come from working IT professionals who have issues to discuss with peers. It really isn't intended to be a teaching site.

    The amount of discussion needed to give a useful answer to your question would be very large.

    From there:

    Can someone explain how this stuff works?

    How what stuff works? Are you asking how HMAC-SHA512 hashing works? That's the kind of thing an "IT pro" is expected to know how to research. It's a topic that has extensive treatment at numerous sites already on the internet. As volunteer members, most of us don't have time to do research for other "IT pros" in order to copy/paste information from existing sites into this one.

    If instead you wrote an algorithm to implement HMAC-SHA512 and it didn't pass the standard tests, we could potentially help track down any problem in your code.

    Or are you asking how the site that you're looking at works? We have no way of knowing what code is implemented behind some remote site, so we don't know. We could potentially offer examples of how we'd do something similar, but ten members are likely to give ten different responses.

    And is it possible to generate next 5 digit number from this data?

    Maybe. If the data shown is all that is used, then, yes, it's possible. Just run the same code that the site uses with all the same data, and the next number will be generated. In short, do everything the same way the site does it, and the same result will come out. But I'd be very surprised if everything is available that is needed. There are some elements that appear to be unavailable.

    How are rolls calculated?

    Is that a question you want answered? Or did you supply an answer for it in your following statements? If your following statements are intended to describe how rolls are calculated, I guess we can ignore the "how" question. And if they're not, then we simply don't know. We don't have copies of the site's code to know how they do it. And if we did have copies, we probably wouldn't divulge a useful answer even to other "IT pros". It could easily be proprietary, for example, and we would have no legal right to make public disclosure.

    But if you were developing software that generated rolls for your own site and ran into a problem, you'd be expected to post sufficient code to replicate the problem. We would look it over and perhaps test it ourselves.

    Anyway, I can't do much but apologize. There just isn't really anything useful to say.

    Tom

    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following