swift
Loading...
Searching...
No Matches
swift::misc::CObfuscation Class Reference

Utility class to obfuscate strings in the source code to make them unreadable. More...

#include <obfuscation.h>

Public Member Functions

 CObfuscation ()=default
 Constructor.

Static Public Member Functions

static QString decode (const QString &inString, bool trimmed=true)
 Decode string if it has the prefix, otherwise do nothing with it.
static QString encode (const QString &inString, bool trimmed=true)
 Encode string and return with prefix.
static const QString & prefix ()
 Prefix to be used with obfuscated string.

Detailed Description

Utility class to obfuscate strings in the source code to make them unreadable.

Remarks
this is no real security, but as the name says just obfuscation. The sole purpose of this class is to remove potentially strings from the source code

Definition at line 18 of file obfuscation.h.

Member Function Documentation

◆ decode()

QString swift::misc::CObfuscation::decode ( const QString & inString,
bool trimmed = true )
static

Decode string if it has the prefix, otherwise do nothing with it.

Definition at line 12 of file obfuscation.cpp.

◆ encode()

QString swift::misc::CObfuscation::encode ( const QString & inString,
bool trimmed = true )
static

Encode string and return with prefix.

Definition at line 27 of file obfuscation.cpp.

◆ prefix()

const QString & swift::misc::CObfuscation::prefix ( )
static

Prefix to be used with obfuscated string.

Definition at line 34 of file obfuscation.cpp.


The documentation for this class was generated from the following files: