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

13 lines
345 B
C#

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