프로퍼티 | 타입 | 설명 | |
---|---|---|---|
Iterations | int | ||
KeyBitSize | int | ||
MacBitSize | int | ||
MinPasswordLength | int | ||
NonceBitSize | int | ||
SaltBitSize | int |
메소드 | 설명 | |
---|---|---|
NewKey ( ) : byte[] |
Helper that generates a random new key on each call.
|
|
SimpleDecrypt ( byte encryptedMessage, byte key, int nonSecretPayloadLength ) : byte[] |
Simple Decryption & Authentication (AES-GCM) of a UTF8 Message
|
|
SimpleDecrypt ( string encryptedMessage, byte key, int nonSecretPayloadLength ) : string |
Simple Decryption & Authentication (AES-GCM) of a UTF8 Message
|
|
SimpleDecryptWithPassword ( byte encryptedMessage, string password, int nonSecretPayloadLength ) : byte[] |
Simple Decryption and Authentication of a UTF8 message using a key derived from a password Significantly less secure than using random binary keys. |
|
SimpleDecryptWithPassword ( string encryptedMessage, string password, int nonSecretPayloadLength ) : string |
Simple Decryption and Authentication (AES-GCM) of a UTF8 message using a key derived from a password (PBKDF2) Significantly less secure than using random binary keys. |
|
SimpleEncrypt ( byte secretMessage, byte key, byte nonSecretPayload = null ) : byte[] |
Simple Encryption And Authentication (AES-GCM) of a UTF8 string. Adds overhead of (Optional-Payload + BlockSize(16) + Message + HMac-Tag(16)) * 1.33 Base64 |
|
SimpleEncrypt ( string secretMessage, byte key, byte nonSecretPayload = null ) : string |
Simple Encryption And Authentication (AES-GCM) of a UTF8 string. Adds overhead of (Optional-Payload + BlockSize(16) + Message + HMac-Tag(16)) * 1.33 Base64 |
|
SimpleEncryptWithPassword ( byte secretMessage, string password, byte nonSecretPayload = null ) : byte[] |
Simple Encryption And Authentication (AES-GCM) of a UTF8 String using key derived from a password. Significantly less secure than using random binary keys. Adds additional non secret payload for key generation parameters. |
|
SimpleEncryptWithPassword ( string secretMessage, string password, byte nonSecretPayload = null ) : string |
Simple Encryption And Authentication (AES-GCM) of a UTF8 String using key 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 key, int nonSecretPayloadLength ) : byte[] | ||
encryptedMessage | byte | The encrypted message. |
key | byte | The key. |
nonSecretPayloadLength | int | Length of the optional non-secret payload. |
리턴 | byte[] |
public static SimpleDecrypt ( string encryptedMessage, byte key, int nonSecretPayloadLength ) : string | ||
encryptedMessage | string | The encrypted message. |
key | byte | The key. |
nonSecretPayloadLength | int | Length of the optional non-secret payload. |
리턴 | string |
public static SimpleDecryptWithPassword ( byte encryptedMessage, string password, int nonSecretPayloadLength ) : byte[] | ||
encryptedMessage | byte | The encrypted message. |
password | string | The password. |
nonSecretPayloadLength | int | Length of the non secret payload. |
리턴 | 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. |
리턴 | string |
public static SimpleEncrypt ( byte secretMessage, byte key, byte nonSecretPayload = null ) : byte[] | ||
secretMessage | byte | The secret message. |
key | byte | The key. |
nonSecretPayload | byte | Optional non-secret payload. |
리턴 | byte[] |
public static SimpleEncrypt ( string secretMessage, byte key, byte nonSecretPayload = null ) : string | ||
secretMessage | string | The secret message. |
key | byte | The key. |
nonSecretPayload | byte | Optional non-secret payload. |
리턴 | string |
public static SimpleEncryptWithPassword ( byte secretMessage, string password, byte nonSecretPayload = null ) : byte[] | ||
secretMessage | byte | The secret message. |
password | string | The password. |
nonSecretPayload | byte | The non secret payload. |
리턴 | 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. |
리턴 | string |