diff options
Diffstat (limited to 'src/core/stdcrypt/encrypt.cpp')
-rw-r--r-- | src/core/stdcrypt/encrypt.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/stdcrypt/encrypt.cpp b/src/core/stdcrypt/encrypt.cpp index 5be76f1c54..1616ac376f 100644 --- a/src/core/stdcrypt/encrypt.cpp +++ b/src/core/stdcrypt/encrypt.cpp @@ -104,6 +104,12 @@ void CStdCrypt::purgeKey(void) m_valid = false;
}
+// checks the master password (in utf-8)
+bool CStdCrypt::checkPassword(const char *pszPassword)
+{
+ return m_password == pszPassword;
+}
+
// sets the master password (in utf-8)
void CStdCrypt::setPassword(const char *pszPassword)
{
|