• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.14.10 API Reference
  • KDE Home
  • Contact Us
 

mailtransport

  • mailtransport
legacydecrypt.cpp
1/*
2 Copyright (c) 2007 Volker Krause <vkrause@kde.org>
3
4 KNode code:
5 Copyright (c) 1999-2005 the KNode authors. // krazy:exclude=copyright
6
7 This library is free software; you can redistribute it and/or modify it
8 under the terms of the GNU Library General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or (at your
10 option) any later version.
11
12 This library is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
15 License for more details.
16
17 You should have received a copy of the GNU Library General Public License
18 along with this library; see the file COPYING.LIB. If not, write to the
19 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20 02110-1301, USA.
21*/
22
23#include "legacydecrypt.h"
24
25#include <KStringHandler>
26
27using namespace MailTransport;
28
29QString Legacy::decryptKMail( const QString &data )
30{
31 return KStringHandler::obscure( data );
32}
33
34QString Legacy::decryptKNode( const QString &data )
35{
36 uint i, val, len = data.length();
37 QString result;
38
39 for ( i = 0; i < len; ++i ) {
40 val = data[i].toLatin1();
41 val -= ' ';
42 val = ( 255 - ' ' ) - val;
43 result += QLatin1Char( (char)( val + ' ' ) );
44 }
45
46 return result;
47}
MailTransport::Legacy::decryptKNode
static QString decryptKNode(const QString &data)
Read data encrypted using KNode's legacy encryption.
Definition: legacydecrypt.cpp:34
MailTransport::Legacy::decryptKMail
static QString decryptKMail(const QString &data)
Read data encrypted using KMail's legacy encryption.
Definition: legacydecrypt.cpp:29
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

mailtransport

Skip menu "mailtransport"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Related Pages

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal