SavvyUI C++ UI Library
Loading...
Searching...
No Matches
Encryption Class Reference

Provides static methods for encrypting and decrypting wide strings. More...

#include <Encryption.h>

Static Public Member Functions

static wstring encrypt (const wstring &input, const wstring &key)
 Encrypts the given input string using the specified key.
static wstring decrypt (const wstring &input, const wstring &key)
 Decrypts the given encrypted string using the specified key.
static string base64_encode (const string &in)
static string base64_decode (const string &in)

Detailed Description

Provides static methods for encrypting and decrypting wide strings.

This utility class offers simple static methods to encrypt and decrypt text data using a provided key. The encryption and decryption algorithms are symmetric, meaning the same key is used for both operations.

Member Function Documentation

◆ base64_decode()

string Encryption::base64_decode ( const string & in)
static

◆ base64_encode()

string Encryption::base64_encode ( const string & in)
static

◆ decrypt()

wstring Encryption::decrypt ( const wstring & input,
const wstring & key )
static

Decrypts the given encrypted string using the specified key.

Parameters
inputThe encrypted wide string to decrypt.
keyThe key used for decryption (must be the same as the encryption key).
Returns
The decrypted plain text wide string.

◆ encrypt()

wstring Encryption::encrypt ( const wstring & input,
const wstring & key )
static

Encrypts the given input string using the specified key.

Parameters
inputThe plain text wide string to encrypt.
keyThe key used for encryption.
Returns
The encrypted wide string.

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