|
static byte[] | ReadSecretKey (string ASecretKeyFile) |
| the key is stored as a base64 string to make it easier to handle the key; this method returns the clear version of the key to be used with encrypt and decrypt functions More...
|
|
static bool | CreateSecretKey (string ASecretKeyFile) |
| store a key into a text file More...
|
|
static bool | Encrypt (byte[] ASecretKey, string AMessage, out string AEncryptedMessage, out string AInitializationVector) |
|
static string | Decrypt (byte[] ASecretKey, string AEncryptedMessage, string AInitializationVector) |
| decrypt an encrypted message, using the secret key and the initialization vector that was used to encrypt the message More...
|
|
static Stream | Encrypt (byte[] AEncryptionKey, Stream source, out byte[] AEncryptionIV) |
| Encrypt a stream, create an initialization vector, which is transmitted with the message More...
|
|
static Stream | Decrypt (byte[] AEncryptionKey, Stream source, byte[] AEncryptionIV) |
| Decrypt a stream, using the initialization vector, which was transmitted with the message. More...
|
|
static string | GetEncryptionName () |
| the name of the encryption algorithm More...
|
|
contains functions to deal with encryption and decryption; see also BuildTools/GenerateEncryptionKey, and Petra/Shared/RemotingSinks