Something went wrong. Try again.
the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
Something went wrong. Try again.
616 B · 28 lines
C++
at master
12345678910111213141516171819202122232425262728#include "stdafx.h"#include <xhash>
#include "Hasher.h"
Hasher::Hasher(wstring &salt){ this->salt = salt;}
wstring Hasher::getHash(wstring &name){ // 4J Stu - Removed try/catch //try { wstring s = wstring( salt ).append( name ); //MessageDigest m; //m = MessageDigest.getInstance("MD5"); //m.update(s.getBytes(), 0, s.length()); //return new BigInteger(1, m.digest()).toString(16);
// TODO 4J Stu - Will this hash us with the same distribution as the MD5? return _toString(std::hash<wstring>{}( s ) ); //} //catch (NoSuchAlgorithmException e) //{ // throw new RuntimeException(e); //}}