NDEVR
API Documentation
bcrypt.h
1#pragma once
2#include <NDEVR/StringView.h>
3#include <NDEVR/String.h>
4#include <NDEVR/UUID.h>
5#include <NDEVR/PasswordString.h>
6namespace NDEVR
7{
11 class NDEVR_SECURITY_API BCrypt
12 {
13 public:
14 static String GenerateHash(const PasswordString& password, uint01 rounds = 10);
15 static String GenerateHash(const StringView& password, uint01 rounds = 10);
16 static String GenerateHash(const UUID& password, uint01 rounds = 10);
17 static bool ValidatePassword(const PasswordString& password, const StringView& hash);
18 static bool ValidatePassword(const StringView& password, const StringView& hash);
19 static bool ValidatePassword(const Buffer<uint01>& password, const StringView& hash);
20 static bool ValidatePassword(const UUID& password, const StringView& hash);
21 };
22}
Provides bcrypt password hashing and validation functions.
Definition bcrypt.h:12
The equivelent of std::vector but with a bit more control.
Definition Buffer.hpp:58
When passwords are used inside the NDEVR engine, we don't want them logged or visible.
The core String View class for the NDEVR API.
Definition StringView.h:58
The core String class for the NDEVR API.
Definition String.h:95
A universally unique identifier (UUID) is a 128-bit number used to identify information in computer s...
Definition UUID.h:61
The primary namespace for the NDEVR SDK.
uint8_t uint01
-Defines an alias representing a 1 byte, unsigned integer -Can represent exact integer values 0 throu...