SavvyUI C++ UI Library
|
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) |
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.
|
static |
|
static |
|
static |
Decrypts the given encrypted string using the specified key.
input | The encrypted wide string to decrypt. |
key | The key used for decryption (must be the same as the encryption key). |
|
static |
Encrypts the given input string using the specified key.
input | The plain text wide string to encrypt. |
key | The key used for encryption. |