mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-02-05 23:09:07 +00:00
13 lines
345 B
C#
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.");
|
||
|
}
|
||
|
}
|