inicasino.netContents

Tools and worked checks · 04 / 23

Server seed hash checker

A game that commits to a server seed shows you its SHA-256 hash first and the seed later. This page hashes the seed and tells you whether the two belong together.

Hash chain diagram: Hash published before play (optional); Revealed seed, each linked to the next by SHA-256.
Compare a revealed seed with the SHA-256 hash published before play.

Commitment checker

This tool runs in your browser with the Web Crypto API. It sends nothing over the network and works offline once the page has loaded. Never paste a wallet secret phrase or a private key here or into any verifier. No check on this site needs one.

Free of charge, no account. Runs in any current web browser.

Paste it exactly. The tool also tries the seed without leading or trailing white space and, if it is all hex digits, as raw bytes (a leading 0x is ignored). The tool does not try other spellings of upper and lower case. That matters only for the text reading, where AB and ab are different seeds; read as hex digits they are the same byte value.

64 hex digits. Upper and lower case mean the same value. Leave empty to see the hashes only.

The result appears here.

Why the hash comes first

The hash is a commitment. Once you hold a copy of it, the operator can no longer swap the seed for another one without your noticing, since the other one would have a different hash. The order is the whole point: a hash shown after the bet commits to nothing. The game's own history page is controlled by the operator, so the record that counts is the copy of the hash you saved yourself before you bet.

Text or bytes

A seed written as 64 hex digits can be hashed in two ways. One treats it as 64 characters of text. The other decodes it to the 32 bytes it stands for. The two give unrelated hashes, and an operator's documentation should say which one it uses. The checker computes both.

One seed, two readings
ReadingSHA-256
000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f as text6c86c6aac5fb24bcf5d9939cb7d7d5645ce39418f449e03b262dd4fa14b4b92b
The same digits decoded to 32 bytes630dcd2966c4336691125448bbb25b4ff412a49c732db2c8abc1b8581bd710dd

SHA-256 and HMAC-SHA256 are different operations

Comparison grid. The two operations in a seed scheme: SHA-256; HMAC-SHA256; Inputs; Used for; Who can compute it.
The two operations in a seed scheme
The two operations in a seed scheme
PropertySHA-256HMAC-SHA256
InputsOne messageA key and a message
Used forThe commitment to the server seedDeriving each result from the seeds and the nonce
Who can compute itAnyone who has the messageOnly someone who has the key
Output32 bytes32 bytes
Defined inFIPS 180-4RFC 2104, with SHA-256 as the hash

Putting a seed through an HMAC tool, or a seed and a nonce through a plain SHA-256 tool, gives a valid-looking value that matches nothing. This page does only the commitment. The provably fair verifier does both.

When the check fails

  • White space. A space or line break copied with the seed is hashed with it. The checker reports a match that appears only after trimming.
  • The wrong pair. The hash you saved may belong to an earlier or later seed pair than the seed you pasted.
  • The reading. See the table above.
  • A different commitment formula. Some schemes commit to the seed together with other data. The operator's documentation has to state the formula, and this page covers only plain SHA-256 of the seed.
  • None of these. Then the revealed seed is not the committed one. Keep both values.

What a match does not show

A match shows that this seed has this hash. It does not show that the hash was displayed before your bet; only your own record shows that. It does not show that the seed was chosen at random, or that the operator could not foresee the other inputs of the result. And it does not show that results were derived from the seed by the stated rule, which is the job of the step-by-step check. The roles of the three inputs are explained on the page about seeds and the nonce, and commitments between two parties on the page about commit-reveal schemes.

Questions people ask

Is it a problem to paste a server seed into a web page?

A revealed server seed is public by design, so no. This page does not send it anywhere in any case, as the privacy page explains. A wallet secret phrase or private key is a different matter: never paste one into this page or any other checker.

Can two different seeds have the same SHA-256 hash?

In principle yes, since there are more possible inputs than outputs. No such pair for SHA-256 is publicly known, and no practical method for finding one has been published.

Does upper or lower case matter?

In the published hash, no. As hexadecimal digits AB and ab denote the same byte value, and the checker compares hashes without regard to case. The same holds for a seed that is read as hex. In a seed read as text, yes: AB and ab are different characters and give different hashes.

Sources

How we checked: statements about a named body link to that body's own page and carry the date we read it. Numbers in worked examples are computed by the site's build from the formulas shown, with routines covered by its test suite.