1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#include <iostream> #include "hash.hh" int main(int argc, char * * argv) { Hash h = hashFile("/etc/passwd"); cout << (string) h << endl; h = parseHash("0b0ffd0538622bfe20b92c4aa57254d9"); cout << (string) h << endl; return 0; }