/***************************************************************************
- * 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 *
#include "storage.h"
+#include <QCryptographicHash>
+
Storage::Storage(QObject *parent)
: QObject(parent)
{
}
+
+QString Storage::cryptedPassword(const QString &password) {
+ return QString(QCryptographicHash::hash(password.toUtf8(), QCryptographicHash::Sha1).toHex());
+}