Tools and utilities useful in encrypting data
- Use the
KeyFactory.GenerateKeyPair
function to generate a Public & Private key
- Serialize the object
- Use the
Encryptor.Encrypt(byte[] publicKey, string dataToEncrypt)
function
- Use the
Decryptor.Decrypt<TValue>(byte[] privateKey, EncryptedDataBlock dataBlock)
function
The GenerateKeyPair
delegate can be mapped in your IoC container to a singleton for ease of use