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

28 lines
693 B
Markdown
Raw Normal View History

2022-09-21 12:39:11 +02:00
## 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)**