mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
19 lines
338 B
C++
19 lines
338 B
C++
#include <iostream>
|
|
#include <string>
|
|
using std::string;
|
|
using std::cout;
|
|
using std::hex;
|
|
#include "crypto_hash.h"
|
|
|
|
int main()
|
|
{
|
|
string x = "testing\n";
|
|
string h = crypto_hash(x);
|
|
for (int i = 0;i < h.size();++i) {
|
|
cout << hex << (15 & (int) (h[i] >> 4));
|
|
cout << hex << (15 & (int) h[i]);
|
|
}
|
|
cout << "\n";
|
|
return 0;
|
|
}
|