diff --git a/mRemoteV1/Security/AeadCryptographyProvider.cs b/mRemoteV1/Security/AeadCryptographyProvider.cs index 544320b80..2c1483467 100644 --- a/mRemoteV1/Security/AeadCryptographyProvider.cs +++ b/mRemoteV1/Security/AeadCryptographyProvider.cs @@ -37,6 +37,8 @@ namespace mRemoteNG.Security public int BlockSizeInBytes => _aeadBlockCipher.GetBlockSize(); + public string CipherEngine => _aeadBlockCipher.AlgorithmName; + public AeadCryptographyProvider() { _aeadBlockCipher = new GcmBlockCipher(new AesFastEngine()); diff --git a/mRemoteV1/Security/AesCryptographyProvider.cs b/mRemoteV1/Security/AesCryptographyProvider.cs index 9d3b23b3a..6acb8b8f5 100644 --- a/mRemoteV1/Security/AesCryptographyProvider.cs +++ b/mRemoteV1/Security/AesCryptographyProvider.cs @@ -12,6 +12,8 @@ namespace mRemoteNG.Security public int BlockSizeInBytes => _aesEngine.GetBlockSize(); + public string CipherEngine => _aesEngine.AlgorithmName; + public AesCryptographyProvider() { _aesEngine = new AesEngine(); diff --git a/mRemoteV1/Security/Encryptor.cs b/mRemoteV1/Security/Encryptor.cs index 032817305..045700af6 100644 --- a/mRemoteV1/Security/Encryptor.cs +++ b/mRemoteV1/Security/Encryptor.cs @@ -24,6 +24,8 @@ namespace mRemoteNG.Security public int BlockSizeInBytes => _blockCipher.GetBlockSize(); + public string CipherEngine => _blockCipher.AlgorithmName; + public Encryptor() { _encoding = Encoding.UTF8; diff --git a/mRemoteV1/Security/ICryptographyProvider.cs b/mRemoteV1/Security/ICryptographyProvider.cs index 428a19d2f..54eb8d193 100644 --- a/mRemoteV1/Security/ICryptographyProvider.cs +++ b/mRemoteV1/Security/ICryptographyProvider.cs @@ -6,6 +6,8 @@ namespace mRemoteNG.Security { int BlockSizeInBytes { get; } + string CipherEngine { get; } + string Encrypt(string plainText, SecureString encryptionKey); string Decrypt(string cipherText, SecureString decryptionKey);