Class SecureString
- Namespace
- Alis.Core.Aspect.Security
- Assembly
- Alis.dll
The secure string class
public class SecureString
Inheritance
Inherited Members
Constructors
SecureString(string)
Initializes a new instance of the Alis.Core.Aspect.Security.SecureString class
public SecureString(string value)
Parameters
value
string-
The value
Fields
encryptedValue
The encrypted value
private string encryptedValue
Field Value
secret
The key
private readonly char secret
Field Value
Methods
EncryptDecrypt(string, char)
Encrypts the decrypt using the specified text to encrypt
private static string EncryptDecrypt(string textToEncrypt, char key)
Parameters
Returns
- string
-
The string
GenerateKey()
Generates the key
private static char GenerateKey()
Returns
- char
-
The char
GetValue()
Gets the value
public string GetValue()
Returns
- string
-
The string
SetValue(string)
Sets the value using the specified value
internal void SetValue(string value)
Parameters
value
string-
The value