mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-23 07:57:51 -05:00
bbf2608ac2
The previous library we used (picosha3) returned a wrong hash for one particular file. Though this was quite rare (we only found 1 such file), it was a bug with the library regardless. The current sha3 library now comes from https://github.com/stbrumme/hash-library
11 lines
279 B
C++
11 lines
279 B
C++
#include <iostream>
|
|
#include "hash.hpp"
|
|
|
|
int main(int argc, char** argv) {
|
|
if (argc < 2 || !ghc::filesystem::exists(argv[1])) {
|
|
std::cout << "Usage: \"checksum <file>\"\n";
|
|
return 1;
|
|
}
|
|
std::cout << calculateHash(argv[1]) << std::endl;
|
|
return 0;
|
|
}
|