algorithm for hashing functions
How to protect yourselves against online casino cheating
How to protect yourselves against online casino cheating
While playing card games (blackjack, punto banco, poker) at a land-based casino, we are absolutely confident of the integrity of the casino, because everything is happening before our eyes. In the case of a loss, we blame either bad luck or ourselves for the wrong moves. We would never claim that a casino was at fault for a bad outcome. But it is different when we play at a online casino, where the random number generator controlling the numbers is far away from us on a game server, and we only see the results as the cards are distributed.
I think that we all have had this thought enter our mind while playing at an online casino.
Does the order of the cards change because of the size of the bet?
Also, is there a possibility to verify and see each hand that was played?
Judging by the discussions of the many players at online gambling forums, such a system already exists and ensures that the online casino is not cheating and does not interfere with game play during the game. This is called Randomness control.
At first glance, Randomness control looks very strange and complicated, but it is actually very simple. Before the game, the online casino gives you a sequence of 64 symbols, called the
checksum. In other words, it’s information about the deck, but in an encrypted form based on the SHA-256 algorithm.
The checksum is the result of a hash function based on the SHA-256 algorithm over textual information about the deck. This is a one-way function, which means that it is impossible to
go from the hash back to the message. A key characteristic is that it is computationally infeasible to create a message to match a given hash, and moreover, if you change a single byte
in the message, the hash will change completely.
Hashing is used to verify data integrity, identify and search and replace data that is not safe to store in an explicit form. The SHA-256 algorithm is applied to confirm information and to form digital signatures.
For example, before the game is started, the RNG generated the following sequence of cards (4d, Jd, Ad, 7h, 3c, 10s, 3d, 5s) and the online casino shows the checksum for this textual information as follows:
44B56F602975AC5F034F83F13D3444DCA200D53D0F8B361B647F427361C03801
You can double-check the checksum following this link http://farfarfar.com/scripts/encrypt/.
The checksum for each sequence of cards is absolutely unique. There are no sequences with identical checksums. Once the game has finished, the player will have access to all the elements of the earlier formed sequence. First of all, he can check whether the game was held according to the plan indicated in the sequence of cards. Next, he can compute the total sum of sequence on the
basis of the SHA-256. If this sum is identical to the one received before he began play, he can confirm that the elements’ sequence which had been formed prior to the beginning of the game was in fact the one used in the game.
In other words, after the game is finished, we receive the information (the order of cards and the value of the cards) about the deck and we can rewrite it in text (4d, Jd, Ad, 7h, 3c, 10s, 3d, 5s). Then we apply the same action that was done in front of the casino game: we use a hash function based on an algorithm SHA-256 to convert textual information about the deck in a sequence of 64 characters.
By comparing the checksum received before the game and the resulting impact of a hash function on the text information on a deck of cards, it can be concluded that the cards were determined
before the deck was shuffled, if both checksums are the same. This means that the casino cannot change the order of cards during the game.
A Randomness control system is used as a guarantee of fairness at the BetVoyager daily lottery too..
About the Author
CERIAS Security: Recent Attacks on MD5 6/6