Class AesStringObfuscator
An IStringObfuscator implementation that uses AesCryptoServiceProvider encryption and decryption methods to obfuscate string values.
Implements
Inherited Members
Namespace: Unity.Cloud.Common
Assembly: Unity.Cloud.Common.dll
Syntax
public class AesStringObfuscator : IStringObfuscator
Constructors
AesStringObfuscator(string)
Create a AesStringObfuscator that uses AesCryptoServiceProvider encryption and decryption methods to obfuscate string values.
Declaration
public AesStringObfuscator(string encodingKey)
Parameters
Type | Name | Description |
---|---|---|
string | encodingKey | The encoding key for obfuscation. |
Methods
Decrypt(string)
Decrypts a string value.
Declaration
public string Decrypt(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | The string to decrypt. |
Returns
Type | Description |
---|---|
string | The decrypted string. |
Encrypt(string)
Encrypts a string value.
Declaration
public string Encrypt(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | The string to encrypt. |
Returns
Type | Description |
---|---|
string | The encrypted string. |