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

13 lines
345 B
C#
Raw Normal View History

2024-09-01 18:10:03 +00:00
using System.Security;
using System.Text.Json.Serialization;
namespace AIStudio.Tools;
[JsonConverter(typeof(EncryptedTextJsonConverter))]
public readonly record struct EncryptedText(string EncryptedData)
{
public EncryptedText() : this(string.Empty)
{
throw new SecurityException("Please provide the encrypted data.");
}
}