Skip to content

public Election::getChecksum

Read it at the source

Description

php
public Election->getChecksum ( ): string

SHA-2 256 checksum of following internal data:

  • Candidates
  • Votes list & tags
  • Computed data (pairwise, algorithm cache, stats)
  • Class version (major version like 3.4)

Can be powerfull to check integrity and security of an election. Or working with serialized object.

Return value

(string) SHA-2 256 bits Hexadecimal


Tutorial

Released under the MIT License.