public Task <byte[]> ReverseAsync(byte[] data)
 {
     return(AesEncryption.DecryptAsync(data, _encryptionSettings.Key,
                                       _encryptionSettings.InitializationVector));
 }
 public byte[] Reverse(byte[] data)
 {
     return(AesEncryption.Decrypt(data, _encryptionSettings.Key,
                                  _encryptionSettings.InitializationVector));
 }
 public byte[] Apply(byte[] data)
 {
     return(AesEncryption.Encrypt(data, _encryptionSettings.Key,
                                  _encryptionSettings.InitializationVector));
 }
 public UniTask <byte[]> ApplyAsync(byte[] data)
 {
     return(AesEncryption.EncryptAsync(data, _encryptionSettings.Key,
                                       _encryptionSettings.InitializationVector).AsUniTask());
 }
Пример #5
0
 private byte[] Decrypt(byte[] data)
 {
     return(AesEncryption.Decrypt(data, _encryptionSettings.Key,
                                  _encryptionSettings.InitializationVector));
 }