miscellaneous refactors (#4521)

This commit is contained in:
ebbit1q 2022-01-16 23:58:53 +01:00 committed by GitHub
parent 994704d353
commit ae9b8b8f34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 32 additions and 50 deletions

View file

@ -4,11 +4,6 @@
#include <QCryptographicHash>
void PasswordHasher::initialize()
{
// dummy
}
QString PasswordHasher::computeHash(const QString &password, const QString &salt)
{
QCryptographicHash::Algorithm algo = QCryptographicHash::Sha512;
@ -41,4 +36,4 @@ QString PasswordHasher::generateRandomSalt(const int len)
QString PasswordHasher::generateActivationToken()
{
return QCryptographicHash::hash(generateRandomSalt().toUtf8(), QCryptographicHash::Md5).toBase64().left(16);
}
}