mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-04 18:27:21 +00:00
14 lines
385 B
C#
14 lines
385 B
C#
namespace AIStudio.Tools;
|
|
|
|
public static class EncryptedTextExtensions
|
|
{
|
|
extension(string data)
|
|
{
|
|
public async Task<EncryptedText> Encrypt(Encryption encryption) => await encryption.Encrypt(data);
|
|
}
|
|
|
|
extension(EncryptedText encryptedText)
|
|
{
|
|
public async Task<string> Decrypt(Encryption encryption) => await encryption.Decrypt(encryptedText);
|
|
}
|
|
} |