DiceKeys Seeded Cryptography Library
|
3 #include "sodium-buffer.hpp"
57 const std::string&
recipe = {}
91 const std::string& seedString,
93 const std::string& wordListAsSingleString
96 const std::string& seedString,
113 const char indent_char =
' '
156 const std::string& seedAsJson
A byte array containing a length and a pointer to memory (the data field), which ensures data is eras...
Definition: sodium-buffer.hpp:27
static Password deriveFromSeedAndWordList(const std::string &seedString, const std::string &recipe, const std::string &wordListAsSingleString)
Derive a secret from a seed secret and a set of recipe in JSON Format for Recipes.
Definition: password.cpp:116
const SodiumBuffer toSerializedBinaryForm() const
Serialize to byte array as a list of: (secretBytes, recipe)
Definition: password.cpp:165
const std::string toJson(int indent=-1, const char indent_char=' ') const
Serialize this object to a JSON-formatted string.
Definition: password.cpp:152
A secret derived from a seed string and set of options in JSON Format for Recipes.
Definition: password.hpp:19
const std::string recipe
A string in JSON Format for Recipes string which specifies how the constructor will derive the secret...
Definition: password.hpp:35
const std::string password
The binary representation of the password.
Definition: password.hpp:28
static Password fromJson(const std::string &seedAsJson)
Construct (reconstitute) a Password from its JSON representation.
Definition: password.cpp:139
Password(const Password &other)
Construct this object as a copy of another object.
Definition: password.cpp:131
static Password fromSerializedBinaryForm(const SodiumBuffer &serializedBinaryForm)
Deserialize from a byte array stored as a list of: (secretBytes, recipe)
Definition: password.cpp:174