/***************************************************************************
- * Copyright (C) 2005-2015 by the Quassel Project *
+ * Copyright (C) 2005-2016 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
enum HashVersion {
Sha1,
-#if QT_VERSION >= 0x050000
Sha2_512,
Latest=Sha2_512
-#else
- Latest=Sha1
-#endif
+
};
public slots:
QString hashPasswordSha1(const QString &password);
bool checkHashedPasswordSha1(const QString &password, const QString &hashedPassword);
-#if QT_VERSION >= 0x050000
QString hashPasswordSha2_512(const QString &password);
bool checkHashedPasswordSha2_512(const QString &password, const QString &hashedPassword);
-#endif
+ QString sha2_512(const QString &input);
};