adding tons of ifdefs so quassel will build again without ssl support
[quassel.git] / src / core / storage.cpp
index 03990c8..4bf6b30 100644 (file)
  ***************************************************************************/
 
 #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());
+}