bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
hasher.cpp
1#include <iostream>
2#include "../picosha2.h"
3
4void CalcAndOutput(const std::string& src){
5 std::cout << "src : \"" << src << "\"\n";
6 std::cout << "hash: " << picosha2::hash256_hex_string(src) << "\n" << std::endl;
7}
8
9int main(int argc, char* argv[])
10{
11 if(argc == 1){
12 CalcAndOutput("");
13 }
14 else{
15 for(int i = 1; i < argc; ++i){
16 CalcAndOutput(argv[i]);
17 }
18 }
19
20 return 0;
21}
22