GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
g
i
k
l
p
r
s
t
u
w
Functions
a
b
c
d
g
i
l
p
r
s
t
u
w
Variables
Typedefs
Enumerations
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Functions
a
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
z
Files
File List
▼
GpgFrontend Project
GpgFrontend Develop Document Main Page
►
Namespaces
►
Classes
▼
Files
▼
File List
▼
src
▼
core
▼
function
►
basic
►
gpg
►
result_analyse
ArchiveFileOperator.h
CacheManager.h
CoreSignalStation.h
DataObjectOperator.h
GlobalSettingStation.h
KeyPackageOperator.h
LoggerManager.h
PassphraseGenerator.h
SecureMemoryAllocator.h
►
log
►
model
►
module
►
thread
►
typedef
►
utils
GpgConstants.h
GpgCoreInit.h
GpgFrontendCore.h
GpgModel.h
►
module
►
pinentry
►
test
►
ui
app.h
cmd.h
GpgFrontendContext.h
init.h
main.h
•
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Pages
PassphraseGenerator.h
1
29
#pragma once
30
31
#include "core/function/basic/GpgFunctionObject.h"
32
33
namespace
GpgFrontend
{
34
40
class
GPGFRONTEND_CORE_EXPORT
PassphraseGenerator
41
:
public
SingletonFunctionObject
<PassphraseGenerator> {
42
public
:
48
explicit
PassphraseGenerator
(
49
int
channel =
SingletonFunctionObject::GetDefaultChannel
())
50
:
SingletonFunctionObject
<
PassphraseGenerator
>(channel) {}
51
58
auto
Generate(
int
len) -> QString;
59
60
private
:
61
std::random_device
rd_
;
62
std::mt19937 mt_ = std::mt19937(rd_());
63
};
64
65
}
// namespace GpgFrontend
GpgFrontend::PassphraseGenerator
The PassphraseGenerator class.
Definition:
PassphraseGenerator.h:41
GpgFrontend::PassphraseGenerator::rd_
std::random_device rd_
Random device.
Definition:
PassphraseGenerator.h:61
GpgFrontend::PassphraseGenerator::PassphraseGenerator
PassphraseGenerator(int channel=SingletonFunctionObject::GetDefaultChannel())
PassphraseGenerator constructor.
Definition:
PassphraseGenerator.h:48
GpgFrontend::SingletonFunctionObject
Definition:
GpgFunctionObject.h:58
GpgFrontend::SingletonFunctionObject::GetDefaultChannel
static auto GetDefaultChannel() -> int
Get the Default Channel object.
Definition:
GpgFunctionObject.h:131
GpgFrontend
Definition:
app.cpp:39
src
core
function
PassphraseGenerator.h
Generated by
1.9.1