mirror of
				https://github.com/MindWorkAI/AI-Studio.git
				synced 2025-11-04 13:00:20 +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.");
 | 
						|
    }
 | 
						|
} |