VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
passwordHasher.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright (c) 2026 MAK Technologies, Inc.
3  * All rights reserved.
4  ******************************************************************************/
5 
6 #pragma once
7 
8 #include <string>
9 
20 {
21 public:
27  static std::string hash(const std::string& password);
28 
34  static bool verify(const std::string& password, const std::string& storedHash);
35 
38  static bool requiresPassword(const std::string& storedHash);
39 };
static std::string hash(const std::string &password)
Hashes the given password using PBKDF2-SHA256 with a fresh cryptographic random salt.
static bool requiresPassword(const std::string &storedHash)
Returns true if the stored hash is non-empty, meaning a password is required to authenticate this acc...
DtPasswordHasher — PBKDF2-SHA256 password hashing and verification utility.
Definition: passwordHasher.h:19
static bool verify(const std::string &password, const std::string &storedHash)
Verifies a plaintext password against a previously stored hash string. Uses constant-time comparison ...

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)