AI-Studio/app/MindWork AI Studio/Tools/EncryptedTextExtensions.cs
2024-09-01 20:10:03 +02:00

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);
}