Wanzyee Studio
CryptoAsciiabstract

Wrapper to encrypt and store a ASCII string, usually used for an identity. More...

Inherits CryptoCache< string, string >.

Public Member Functions

 CryptoAscii (string value="")
 Initialize with the specified value. More...
 
CryptoCache(T value=default) override void OnBeforeSerialize ()
 Initialize with the specified value. More...
 
override void OnAfterDeserialize ()
 OnAfterDeserialize, read the real value to the obfuscated cache. More...
 

Protected Member Functions

override string ReadObfuscated ()
 Read the obfuscated cache value. More...
 
override void WriteObfuscated (string value)
 Write value to the obfuscated cache. More...
 
override string ValidateEditee ()
 Validate the editee value, return null if correct, otherwise the warning message. More...
 
abstract void WriteObfuscated (T value)
 Write value to the obfuscated cache. More...
 
int RandomValue (int min=int.MinValue, int max=int.MaxValue)
 Get a random value in the specified range. More...
 

Properties

override T value [get, set]
 The stored value. More...
 

Detailed Description

Wrapper to encrypt and store a ASCII string, usually used for an identity.

Constructor & Destructor Documentation

CryptoAscii ( string  value = "")

Initialize with the specified value.

Parameters
valueValue.

Member Function Documentation

override string ReadObfuscated ( )
protectedvirtual

Read the obfuscated cache value.

Returns
Value.

Implements CryptoCache< string, string >.

override void WriteObfuscated ( string  value)
protected

Write value to the obfuscated cache.

Parameters
valueValue.
override string ValidateEditee ( )
protected

Validate the editee value, return null if correct, otherwise the warning message.

Returns
Message.
CryptoCache (T value = default) override void OnBeforeSerialize ( )
inherited

Initialize with the specified value.

Parameters
valueValue.

OnBeforeSerialize, write the obfuscated cache to the real value.

override void OnAfterDeserialize ( )
inherited

OnAfterDeserialize, read the real value to the obfuscated cache.

abstract void WriteObfuscated ( value)
protectedpure virtualinherited

Write value to the obfuscated cache.

Parameters
valueValue.
int RandomValue ( int  min = int.MinValue,
int  max = int.MaxValue 
)
protectedinherited

Get a random value in the specified range.

Parameters
minMin value.
maxMax value.
Returns
Value.

Property Documentation

override T value
getsetinherited

The stored value.