Sha256: 22cc21f70edf2aa6ba541cc2349e16fa706a3750cf688acae490e85616548355

Contents?: true

Size: 352 Bytes

Versions: 3

Compression:

Stored size: 352 Bytes

Contents

#include <iostream>
#include <string>
using std::string;
using std::cout;
using std::hex;
#include "crypto_hash_sha512.h"

int main()
{
  string x = "testing\n";
  string h = crypto_hash_sha512(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/hash4.cpp
ruby_nacl-0.1.1 ext/ruby_nacl/NaCl/tests/hash4.cpp
ruby_nacl-0.1.0 ext/ruby_nacl/NaCl/tests/hash4.cpp