public ServiceAInjection(IAESProvider provider) { _provider = provider; }
public static void ShowDecryptData(IAESProvider aesProvider, string data) { var decryptData = aesProvider.Decrypt(data); Console.WriteLine(decryptData); }
public AESService(IAESProvider provider, ICryptoEncoding encoding) : base(provider, encoding) { AESProvider = provider ?? throw new ArgumentNullException(nameof(provider)); }
public static void ShowEncryptData(IAESProvider aesProvider, string data) { var encryptData = aesProvider.Encrypt(data); Console.WriteLine(encryptData); }
public ServiceBInjection(IAESProvider provider) { this._provider = provider; }