swift
obfuscation.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2018 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
5 
6 #ifndef SWIFT_MISC_OBFUSCATION_H
7 #define SWIFT_MISC_OBFUSCATION_H
8 
9 #include <QString>
10 
11 #include "misc/swiftmiscexport.h"
12 
13 namespace swift::misc
14 {
19  {
20  public:
22  CObfuscation() = default;
23 
25  static QString decode(const QString &inString, bool trimmed = true);
26 
28  static QString encode(const QString &inString, bool trimmed = true);
29 
31  static const QString &prefix();
32 
33  private:
34  static constexpr quint64 Key = 7234623562;
35  };
36 } // namespace swift::misc
37 #endif // SWIFT_MISC_OBFUSCATION_H
Utility class to obfuscate strings in the source code to make them unreadable.
Definition: obfuscation.h:19
CObfuscation()=default
Constructor.
Free functions in swift::misc.
#define SWIFT_MISC_EXPORT
Export a class or function from the library.