Wrapper to encrypt and store a string
.
More...
Inherits CryptoValue< string, string >.
Wrapper to encrypt and store a string
.
Initialize with the specified value.
- Parameters
-
override string ToString |
( |
| ) |
|
|
inherited |
Return the plain text.
- Returns
- A
string
represents this.
Read the stored real value.
- Returns
- Value.
void WriteValue |
( |
T |
value | ) |
|
|
protectedinherited |
Write the real value to store.
- Parameters
-
Read the decrypted plain text.
- Returns
- Plain text.
void WriteText |
( |
string |
text, |
|
|
bool |
force = false |
|
) |
| |
|
protectedinherited |
Encrypt the plain text and write with a new key.
- Parameters
-
text | Plain text. |
force | If to force update, otherwise check changed in editor. |
virtual T ToValue |
( |
string |
text | ) |
|
|
protectedvirtualinherited |
Convert the decrypted text to the real value.
- Parameters
-
- Returns
- Value.
virtual string ToText |
( |
T |
value | ) |
|
|
protectedvirtualinherited |
Convert the real value to the text to encrypt.
- Parameters
-
- Returns
- Text.
virtual void OnBeforeSerialize |
( |
| ) |
|
|
virtualinherited |
OnBeforeSerialize, check if saving to obfuscate the plain data, otherwise prepare the editee value.
virtual void OnAfterDeserialize |
( |
| ) |
|
|
virtualinherited |
OnAfterDeserialize, check if to store and clean the editee value.
|
protectedvirtualinherited |
Read the stored value to the editee value.
- Returns
- Editee.
virtual void WriteEditee |
( |
U |
editee | ) |
|
|
protectedvirtualinherited |
Write the editee value to the stored value.
- Parameters
-
virtual string ValidateEditee |
( |
| ) |
|
|
protectedvirtualinherited |
Validate the editee value, return null
if correct, otherwise the warning message.
- Returns
- Message.