Пример #1
0
 public ServiceAInjection(IAESProvider provider)
 {
     _provider = provider;
 }
Пример #2
0
        public static void ShowDecryptData(IAESProvider aesProvider, string data)
        {
            var decryptData = aesProvider.Decrypt(data);

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

            Console.WriteLine(encryptData);
        }
Пример #5
0
 public ServiceBInjection(IAESProvider provider)
 {
     this._provider = provider;
 }