#region ========================================================================= USING ===================================================================================== using System; #endregion namespace Lumina.Application.Common.Infrastructure.Security; /// /// Interface for the service for cryptographic concerns. /// public interface ICryptographyService { /// /// Encrypts a plaintext string using AES encryption with a randomly generated initialization vector (IV). /// /// The plaintext string to encrypt. /// A Base64-encoded string of the combined IV and encrypted ciphertext. /// Thrown when is or empty. string Encrypt(string plaintext); /// /// Decrypts a Base64-encoded string that contains both the IV and ciphertext. /// /// The Base64-encoded string containing both IV and ciphertext. /// The decrypted plaintext string. /// Thrown when is , empty, or invalid. string Decrypt(string ciphertext); }