mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-02-05 19:49:06 +00:00
8 lines
349 B
C#
8 lines
349 B
C#
namespace AIStudio.Tools;
|
|
|
|
public static class EncryptedTextExtensions
|
|
{
|
|
public static async Task<EncryptedText> Encrypt(this string data, Encryption encryption) => await encryption.Encrypt(data);
|
|
|
|
public static async Task<string> Decrypt(this EncryptedText encryptedText, Encryption encryption) => await encryption.Decrypt(encryptedText);
|
|
} |