QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
z
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
c
e
f
g
h
k
l
m
o
p
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Related Functions
3
a
c
d
e
f
g
i
l
m
n
o
p
q
r
s
t
v
Files
File List
File Members
All
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
Typedefs
3
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
c
l
s
t
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
y
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
core
auth
qgsauthcrypto.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsauthcrypto.h
3
---------------------
4
begin : October 5, 2014
5
copyright : (C) 2014 by Boundless Spatial, Inc. USA
6
author : Larry Shaffer
7
email : lshaffer at boundlessgeo dot com
8
***************************************************************************
9
* *
10
* This program is free software; you can redistribute it and/or modify *
11
* it under the terms of the GNU General Public License as published by *
12
* the Free Software Foundation; either version 2 of the License, or *
13
* (at your option) any later version. *
14
* *
15
***************************************************************************/
16
17
#ifndef QGSAUTHCRYPTO_H
18
#define QGSAUTHCRYPTO_H
19
20
#define SIP_NO_FILE
21
22
#include <QFile>
23
#include <QString>
24
25
#include "qgis_core.h"
26
33
class
CORE_EXPORT
QgsAuthCrypto
34
{
35
36
public
:
38
static
bool
isDisabled();
39
41
static
const
QString encrypt(
const
QString &pass,
const
QString &cipheriv,
const
QString &text );
42
44
static
const
QString decrypt(
const
QString &pass,
const
QString &cipheriv,
const
QString &text );
45
47
static
void
passwordKeyHash(
const
QString &pass,
48
QString *salt,
49
QString *hash,
50
QString *cipheriv =
nullptr
);
51
53
static
bool
verifyPasswordKeyHash(
const
QString &pass,
54
const
QString &salt,
55
const
QString &hash,
56
QString *hashderived =
nullptr
);
57
58
private
:
59
static
QString encryptdecrypt(
const
QString &passstr,
60
const
QString &cipheriv,
61
const
QString &textstr,
62
bool
encrypt );
63
};
64
65
#endif // QGSAUTHCRYPTO_H
QgsAuthCrypto
Functions for hashing/checking master password and encrypt/decrypting data with password.
Definition:
qgsauthcrypto.h:34
Generated on Sat Oct 24 2020 17:43:09 for QGIS API Documentation by
1.8.20