Sha256: 2d30a9c3258e9857b0dfe1e51bdc4ce186276a9bcf1c3490c724bf4d7b102c15

Contents?: true

Size: 338 Bytes

Versions: 3

Compression:

Stored size: 338 Bytes

Contents

#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;
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby_nacl-0.1.2 ext/ruby_nacl/NaCl/tests/hash2.cpp
ruby_nacl-0.1.1 ext/ruby_nacl/NaCl/tests/hash2.cpp
ruby_nacl-0.1.0 ext/ruby_nacl/NaCl/tests/hash2.cpp