public ServiceAInjection(IAESProvider provider)
 {
     _provider = provider;
 }
Example #2
0
        public static void ShowDecryptData(IAESProvider aesProvider, string data)
        {
            var decryptData = aesProvider.Decrypt(data);

            Console.WriteLine(decryptData);
        }
Example #3
0
 public AESService(IAESProvider provider, ICryptoEncoding encoding)
     : base(provider, encoding)
 {
     AESProvider = provider ?? throw new ArgumentNullException(nameof(provider));
 }
Example #4
0
        public static void ShowEncryptData(IAESProvider aesProvider, string data)
        {
            var encryptData = aesProvider.Encrypt(data);

            Console.WriteLine(encryptData);
        }
 public ServiceBInjection(IAESProvider provider)
 {
     this._provider = provider;
 }