AI-Studio/app/MindWork AI Studio/Tools/EncryptedTextExtensions.cs

8 lines
349 B
C#
Raw Normal View History

2024-09-01 18:10:03 +00:00
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);
}