OpenCPN Partial API docs
|
A random generated int value with accessors for string and hashcode. More...
#include <pincode.h>
Public Member Functions | |
Pincode (uint64_t v) | |
Create a new pincode based on a known value. | |
uint64_t | Get () const |
Return numeric value: | |
std::string | ToString () const |
Return value as string. | |
std::string | Hash () const |
Return a hashvalue string. | |
std::string | CompatHash () |
Return a hashvalue as computed on 5.8 hosts. | |
Static Public Member Functions | |
static Pincode | Create () |
Create a new pincode based on a random value. | |
static std::string | IntToHash (uint64_t value) |
convert numeric value to hash string. | |
A random generated int value with accessors for string and hashcode.
|
inline |
std::string Pincode::CompatHash | ( | ) |
Return a hashvalue as computed on 5.8 hosts.
Definition at line 31 of file pincode.cpp.
|
static |
Create a new pincode based on a random value.
Definition at line 42 of file pincode.cpp.
uint64_t Pincode::Get | ( | ) | const |
Return numeric value:
Definition at line 47 of file pincode.cpp.
std::string Pincode::Hash | ( | ) | const |
Return a hashvalue string.
Definition at line 55 of file pincode.cpp.
|
static |
convert numeric value to hash string.
Definition at line 61 of file pincode.cpp.
std::string Pincode::ToString | ( | ) | const |
Return value as string.
Definition at line 49 of file pincode.cpp.