Свойство | Type | Description | |
---|---|---|---|
BlockBitSize | int | ||
Iterations | int | ||
KeyBitSize | int | ||
MinPasswordLength | int | ||
SaltBitSize | int |
Méthode | Description | |
---|---|---|
NewKey ( ) : byte[] |
Helper that generates a random key on each call.
|
|
SimpleDecrypt ( byte encryptedMessage, byte cryptKey, byte authKey, int nonSecretPayloadLength ) : byte[] | ||
SimpleDecrypt ( string encryptedMessage, byte cryptKey, byte authKey, int nonSecretPayloadLength ) : string |
Simple Authentication (HMAC) then Decryption (AES) for a secrets UTF8 Message.
|
|
SimpleDecryptWithPassword ( byte encryptedMessage, string password, int nonSecretPayloadLength ) : byte[] | ||
SimpleDecryptWithPassword ( string encryptedMessage, string password, int nonSecretPayloadLength ) : string |
Simple Authentication (HMAC) and then Descryption (AES) of a UTF8 Message using keys derived from a password (PBKDF2). Significantly less secure than using random binary keys. |
|
SimpleEncrypt ( byte secretMessage, byte cryptKey, byte authKey, byte nonSecretPayload = null ) : byte[] | ||
SimpleEncrypt ( string secretMessage, byte cryptKey, byte authKey, byte nonSecretPayload = null ) : string |
Simple Encryption (AES) then Authentication (HMAC) for a UTF8 Message. Adds overhead of (Optional-Payload + BlockSize(16) + Message-Padded-To-Blocksize + HMac-Tag(32)) * 1.33 Base64 |
|
SimpleEncryptWithPassword ( byte secretMessage, string password, byte nonSecretPayload = null ) : byte[] | ||
SimpleEncryptWithPassword ( string secretMessage, string password, byte nonSecretPayload = null ) : string |
Simple Encryption (AES) then Authentication (HMAC) of a UTF8 message using Keys derived from a Password (PBKDF2). Significantly less secure than using random binary keys. Adds additional non secret payload for key generation parameters. |
public static SimpleDecrypt ( byte encryptedMessage, byte cryptKey, byte authKey, int nonSecretPayloadLength ) : byte[] | ||
encryptedMessage | byte | |
cryptKey | byte | |
authKey | byte | |
nonSecretPayloadLength | int | |
Résultat | byte[] |
public static SimpleDecrypt ( string encryptedMessage, byte cryptKey, byte authKey, int nonSecretPayloadLength ) : string | ||
encryptedMessage | string | The encrypted message. |
cryptKey | byte | The crypt key. |
authKey | byte | The auth key. |
nonSecretPayloadLength | int | Length of the non secret payload. |
Résultat | string |
public static SimpleDecryptWithPassword ( byte encryptedMessage, string password, int nonSecretPayloadLength ) : byte[] | ||
encryptedMessage | byte | |
password | string | |
nonSecretPayloadLength | int | |
Résultat | byte[] |
public static SimpleDecryptWithPassword ( string encryptedMessage, string password, int nonSecretPayloadLength ) : string | ||
encryptedMessage | string | The encrypted message. |
password | string | The password. |
nonSecretPayloadLength | int | Length of the non secret payload. |
Résultat | string |
public static SimpleEncrypt ( byte secretMessage, byte cryptKey, byte authKey, byte nonSecretPayload = null ) : byte[] | ||
secretMessage | byte | |
cryptKey | byte | |
authKey | byte | |
nonSecretPayload | byte | |
Résultat | byte[] |
public static SimpleEncrypt ( string secretMessage, byte cryptKey, byte authKey, byte nonSecretPayload = null ) : string | ||
secretMessage | string | The secret message. |
cryptKey | byte | The crypt key. |
authKey | byte | The auth key. |
nonSecretPayload | byte | (Optional) Non-Secret Payload. |
Résultat | string |
public static SimpleEncryptWithPassword ( byte secretMessage, string password, byte nonSecretPayload = null ) : byte[] | ||
secretMessage | byte | |
password | string | |
nonSecretPayload | byte | |
Résultat | byte[] |
public static SimpleEncryptWithPassword ( string secretMessage, string password, byte nonSecretPayload = null ) : string | ||
secretMessage | string | The secret message. |
password | string | The password. |
nonSecretPayload | byte | The non secret payload. |
Résultat | string |