1
0
This repository has been archived on 2023-11-30. You can view files and clone it, but cannot push or open issues or pull requests.
dtux__serveur-vote-lalis/include/condorcet/Documentation/Election Class/public Election--getChecksum.md
2022-09-21 14:01:45 +02:00

28 lines
693 B
Markdown

## public Election::getChecksum
### 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 0.14)
Can be powerfull to check integrity and security of an election. Or working with serialized object.
### Return value:
*(```string```)* SHA-2 256 bits Hexadecimal
---------------------------------------
### Examples and explanation
* **[Manual - Cryptographic Checksum](https://github.com/julien-boudry/Condorcet/wiki/III-%23-A.-Avanced-features---Configuration-%23-2.-Cryptographic-Checksum)**