Change module GenerateKeyfile to more versatile GenerateKey, which doesnt have to output to a file
This commit is contained in:
@@ -34,7 +34,7 @@ class Configuration {
|
||||
ENCRYPT,
|
||||
DECRYPT,
|
||||
HASH,
|
||||
GENERATE_KEYFILE
|
||||
GENERATE_KEY
|
||||
} activeModule;
|
||||
|
||||
//! Will analyze the supplied cli parameters,
|
||||
|
15
GCryptCLI/include/ModuleGenerateKey.h
Normal file
15
GCryptCLI/include/ModuleGenerateKey.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#ifndef GCRYPTCLI_MODULE_GENERATEKEY_H
|
||||
#define GCRYPTCLI_MODULE_GENERATEKEY_H
|
||||
|
||||
namespace Module {
|
||||
// This module just generates a key, and outputs it.
|
||||
// Can be used to create a keyfiles.
|
||||
class GenerateKey {
|
||||
public:
|
||||
//! Will write the key to a file
|
||||
static void Run();
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@@ -1,14 +0,0 @@
|
||||
#ifndef GCRYPTCLI_MODULE_GENERATEKEYFILE_H
|
||||
#define GCRYPTCLI_MODULE_GENERATEKEYFILE_H
|
||||
|
||||
namespace Module {
|
||||
// This class has the task to prepare and supply the encryption key.
|
||||
class GenerateKeyfile {
|
||||
public:
|
||||
//! Will write the key to a file
|
||||
static void Run();
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user