X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fstorage.cpp;h=0fbd3fc2615430ab949608dcdd574b5d55d86a66;hp=26172c89952f9a52043766605e9b86318f40703f;hb=23c207ca5991b8c913114eb216debaddeb0de6e1;hpb=4b41d8800c38aa3bc4e88a76289b45bc888ba088 diff --git a/src/core/storage.cpp b/src/core/storage.cpp index 26172c89..0fbd3fc2 100644 --- a/src/core/storage.cpp +++ b/src/core/storage.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-08 by the Quassel Project * + * Copyright (C) 2005-09 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -20,7 +20,13 @@ #include "storage.h" +#include + Storage::Storage(QObject *parent) : QObject(parent) { } + +QString Storage::cryptedPassword(const QString &password) { + return QString(QCryptographicHash::hash(password.toUtf8(), QCryptographicHash::Sha1).toHex()); +}