Class AesEncryptionAlgorithm
- Namespace
- JJMasterData.Commons.Security.Cryptography
- Assembly
- JJMasterData.Commons.dll
AES is more secure than the DES cipher and is the de facto world standard. DES can be broken easily as it has known vulnerabilities.
public class AesEncryptionAlgorithm : IEncryptionAlgorithm
- Inheritance
-
AesEncryptionAlgorithm
- Implements
- Inherited Members
Constructors
AesEncryptionAlgorithm(IMemoryCache?)
AES is more secure than the DES cipher and is the de facto world standard. DES can be broken easily as it has known vulnerabilities.
public AesEncryptionAlgorithm(IMemoryCache? memoryCache = null)
Parameters
memoryCache
IMemoryCache
Methods
DecryptString(string, string)
public string DecryptString(string cipherText, string secretKey)
Parameters
Returns
EncryptString(string, string)
public string EncryptString(string plainText, string secretKey)