Merge pull request #71 from 4jcraft/refactor/no-std-wildcard

refactor: remove `using namespace std`
This commit is contained in:
Tropical
2026-03-08 10:09:33 -05:00
committed by GitHub
1972 changed files with 11580 additions and 11580 deletions

View File

@@ -10,17 +10,17 @@
#include "Hasher.h"
#include <openssl/evp.h>
Hasher::Hasher(wstring &salt)
Hasher::Hasher(std::wstring &salt)
{
this->salt = salt;
}
wstring Hasher::getHash(wstring &name)
std::wstring Hasher::getHash(std::wstring &name)
{
#if defined(_WIN32)
// 4J Stu - Removed try/catch
//try {
wstring s = wstring( salt ).append( name );
std::wstring s = std::wstring( salt ).append( name );
//MessageDigest m;
//m = MessageDigest.getInstance("MD5");
//m.update(s.getBytes(), 0, s.length());