-
-
Notifications
You must be signed in to change notification settings - Fork 5
Cryptology
Taiizor edited this page Mar 1, 2023
·
2 revisions
The CryptologyExtension class contains extension methods for cryptographic operations such as converting text to Base64, encrypting text with AES, and generating MD5 hash values.
The CryptologyExtension class is defined in the Skylark.Standard.Extension.Cryptology namespace.
Converts a text string to a Base64-encoded string.
public static string TextToBase(string Text = MCCM.Text, EET Encode = MCCM.Encode)
-
Text (string): The text string to be converted to Base64. The default value is
MCCM.Text
. -
Encode (EET): The encoding type of the text string. The default value is
MCCM.Encode
.
A string that represents the Base64-encoded version of the input text.
- E: Throws an E exception if an error occurs.
Asynchronously converts a text string to a Base64-encoded string.
public static Task<string> TextToBaseAsync(string Text = MCCM.Text, EET Encode = MCCM.Encode)
-
Text (string): The text string to be converted to Base64. The default value is
MCCM.Text
. -
Encode (EET): The encoding type of the text string. The default value is
MCCM.Encode
.
A task that represents the asynchronous operation. The task result is a string that represents the Base64-encoded version of the input text.
Encrypts a text string with the Advanced Encryption Standard (AES) algorithm.
public static string TextToAes(string Text = MCCM.Text, string IV = MCCM.IV, string Key = MCCM.Key, CipherMode Mode = MCCM.Cipher, EET Encode = MCCM.Encode)
-
Text (string): The text string to be encrypted. The default value is
MCCM.Text
. -
IV (string): The initialization vector (IV) to use for the AES algorithm. The default value is
MCCM.IV
. -
Key (string): The key to use for the AES algorithm. The default value is
MCCM.Key
. -
Mode (CipherMode): The cipher mode to use for the AES algorithm. The default value is
MCCM.Cipher
.
- Tax
- Url
- Web
- Ping
- Port
- Text
- Time
- Hash
- Word
- Color
- Speed
- Lottery
- Storage
- Browser
- Unicode
- Password
- JavaScript
- Cryptology
- Typography
- Temperature
- Compression
- Decompression
- Cascading Style Sheets
- JavaScript Object Notation
- Hypertext Markup Language
- Extensible Markup Language
- Extensible HyperText Markup Language