X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fstorage.h;h=71492d5b8f92e255340e4e66f0063cc8e73be77e;hb=2bcdfeb7291667014106f6add98f8e7866bb1cc7;hp=9371529d5e4791383ae877dd2a461a4b8a53b31a;hpb=5924533c6d0f9777d38c01ed7e1510a55db2b876;p=quassel.git diff --git a/src/core/storage.h b/src/core/storage.h index 9371529d..71492d5b 100644 --- a/src/core/storage.h +++ b/src/core/storage.h @@ -1,5 +1,5 @@ /*************************************************************************** - * 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 * @@ -43,8 +43,10 @@ public: }; enum HashVersion { - sha1, - latest=sha1 + Sha1, + Sha2_512, + Latest=Sha2_512 + }; public slots: @@ -419,6 +421,10 @@ protected: private: QString hashPasswordSha1(const QString &password); bool checkHashedPasswordSha1(const QString &password, const QString &hashedPassword); + + QString hashPasswordSha2_512(const QString &password); + bool checkHashedPasswordSha2_512(const QString &password, const QString &hashedPassword); + QString sha2_512(const QString &input); };