Method | Description | |
---|---|---|
Insert ( int iStart, string strInsert ) : |
||
ProtectedString ( ) : System |
Construct a new protected string object. Protection is disabled.
|
|
ProtectedString ( bool bEnableProtection, KeePassLib.Security.XorredBuffer xbProtected ) : System |
Construct a new protected string. The string is initialized to the value passed in the
|
|
ProtectedString ( bool bEnableProtection, byte vUtf8Value ) : System |
Construct a new protected string. The string is initialized to the value supplied in the parameters (UTF-8 encoded string).
|
|
ProtectedString ( bool bEnableProtection, string strValue ) : System |
Construct a new protected string. The string is initialized to the value supplied in the parameters.
|
|
ReadString ( ) : string |
Convert the protected string to a normal string object. Be careful with this function, the returned string object isn't protected anymore and stored in plain-text in the process memory.
|
|
ReadUtf8 ( ) : byte[] |
Read out the string and return a byte array that contains the string encoded using UTF-8. The returned string is not protected anymore!
|
|
ReadXorredString ( KeePassLib.Cryptography.CryptoRandomStream crsRandomSource ) : byte[] |
Read the protected string and return it protected with a sequence of bytes generated by a random stream.
|
|
Remove ( int iStart, int nCount ) : |
||
WithProtection ( bool bProtect ) : |
Method | Description | |
---|---|---|
Init ( bool bEnableProtection, byte pbUtf8 ) : void | ||
Init ( bool bEnableProtection, string str ) : void |
public Insert ( int iStart, string strInsert ) : |
||
iStart | int | |
strInsert | string | |
return |
public ProtectedString ( bool bEnableProtection, KeePassLib.Security.XorredBuffer xbProtected ) : System | ||
bEnableProtection | bool | Enable protection or not. |
xbProtected | KeePassLib.Security.XorredBuffer | |
return | System |
public ProtectedString ( bool bEnableProtection, byte vUtf8Value ) : System | ||
bEnableProtection | bool | If this parameter is |
vUtf8Value | byte | The initial string value, encoded as /// UTF-8 byte array. This parameter won't be modified; the caller /// is responsible for clearing it. |
return | System |
public ProtectedString ( bool bEnableProtection, string strValue ) : System | ||
bEnableProtection | bool | If this parameter is |
strValue | string | The initial string value. |
return | System |
public ReadXorredString ( KeePassLib.Cryptography.CryptoRandomStream crsRandomSource ) : byte[] | ||
crsRandomSource | KeePassLib.Cryptography.CryptoRandomStream | Random number source. |
return | byte[] |
public Remove ( int iStart, int nCount ) : |
||
iStart | int | |
nCount | int | |
return |
public WithProtection ( bool bProtect ) : |
||
bProtect | bool | |
return |