mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-29 19:39:47 +00:00
13 lines
364 B
C#
13 lines
364 B
C#
using System.Security;
|
|
|
|
namespace AIStudio.Tools;
|
|
|
|
public readonly record struct EncryptedText(string EncryptedData)
|
|
{
|
|
public EncryptedText() : this(string.Empty)
|
|
{
|
|
throw new SecurityException("Please provide the encrypted data.");
|
|
}
|
|
|
|
public static implicit operator string(EncryptedText encryptedText) => encryptedText.EncryptedData;
|
|
} |