Implemented a Key::Random() method

This commit is contained in:
Leonetienne
2022-05-22 17:24:56 +02:00
parent 04c67436c4
commit a3c04b957f
2 changed files with 25 additions and 0 deletions

View File

@@ -11,7 +11,12 @@ namespace Leonetienne::GCrypt {
*/
class Key : public Block {
public:
//! Will generate a key from a password
static Key FromPassword(const std::string& password);
//! Will generate a random key from actual randomness (std::random_device)
static Key Random();
Key();
Key(const Key& k);
Key(const Block& b);