Table of Contents

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

string

secret

The key

private readonly char secret

Field Value

char

Methods

EncryptDecrypt(string, char)

Encrypts the decrypt using the specified text to encrypt

private static string EncryptDecrypt(string textToEncrypt, char key)

Parameters

textToEncrypt string

The text to encrypt

key char

The key

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