Method | Description | |
---|---|---|
ComputeHash ( Array bytes, Array hashKeyBytes = null ) : Guid |
Computes the HMAC MD5 hash value for the specified byte array. One instance of the MD5 Crypto Service Provider can't operate properly with multiple simultaneous threads. Use lock to solve this problem. |
|
ComputeHash ( string text, string hashKey = null ) : Guid |
Computes the HMAC MD5 hash value for the specified text.
|
|
ComputeMd5Hash ( Array bytes ) : Guid |
Computes the MD5 hash value for the specified byte array. One instance of the MD5 Crypto Service Provider can't operate properly with multiple simultaneous threads. Use lock to solve this problem. |
|
ComputeMd5Hash ( string text ) : Guid |
Computes the MD5 hash value for the specified text. Use UTF-8 encoding to get bytes.
|
|
ComputeMd5Hash ( string text, Encoding encoding ) : Guid |
Computes the MD5 hash value for the specified text.
|
|
Dispose ( ) : void | ||
Encryption ( string prefix = null ) : System | ||
GetNewRsaKeys ( ) : string |
Get new public and private RSA key pair.
|
|
GetNewRsaKeys ( int keySize ) : string |
Get new public and private RSA key pair for app.config file.
|
|
RsaDecrypt ( string base64Text ) : string |
Decrypts data with the System.Security.Cryptography.RSA algorithm.
|
|
RsaEncrypt ( Array bytes ) : string |
Encrypts data with the System.Security.Cryptography.RSA algorithm.
|
|
RsaEncrypt ( string text ) : string |
Encrypts data with the System.Security.Cryptography.RSA algorithm.
|
|
RsaNewKeys ( int keySize ) : Keys | ||
RsaNewKeysSave ( ) : void | ||
RsaNewKeysSave ( int keySize ) : void | ||
UpsertKey ( |
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
public ComputeHash ( Array bytes, Array hashKeyBytes = null ) : Guid | ||
bytes | Array | The input to compute the hash code for. |
hashKeyBytes | Array | |
return | Guid |
public ComputeHash ( string text, string hashKey = null ) : Guid | ||
text | string | The input to compute the hash code for. |
hashKey | string | |
return | Guid |
public ComputeMd5Hash ( Array bytes ) : Guid | ||
bytes | Array | The input to compute the hash code for. |
return | Guid |
public ComputeMd5Hash ( string text ) : Guid | ||
text | string | The input to compute the hash code for. |
return | Guid |
public ComputeMd5Hash ( string text, Encoding encoding ) : Guid | ||
text | string | The input to compute the hash code for. |
encoding | Encoding | Encoding to get bytes. |
return | Guid |
public Encryption ( string prefix = null ) : System | ||
prefix | string | |
return | System |
public GetNewRsaKeys ( int keySize ) : string | ||
keySize | int | Key size. |
return | string |
public RsaDecrypt ( string base64Text ) : string | ||
base64Text | string | The data to be decrypted. |
return | string |
public RsaEncrypt ( Array bytes ) : string | ||
bytes | Array | The data to be encrypted. |
return | string |
public RsaEncrypt ( string text ) : string | ||
text | string | The data to be encrypted. |
return | string |
public UpsertKey ( |
||
config | ||
name | string | |
value | object | |
return | void |