Implemented a key class

This commit is contained in:
Leonetienne
2022-05-22 13:45:40 +02:00
parent c0b6bff8b7
commit 1a2a74cdac
13 changed files with 100 additions and 95 deletions
+22
View File
@@ -0,0 +1,22 @@
#include "GCrypt/Key.h"
#include "GCrypt/GHash.h"
#include "GCrypt/Util.h"
namespace Leonetienne::GCrypt {
Key Key::FromPassword(const std::string& password) {
return GHash::CalculateHashsum(
StringToBits(password)
);
}
Key::Key() : Block() {
}
Key::Key(const Block& b) : Block(b) {
}
Key::Key(const Key& k) : Block(k) {
}
}