Class EncryptedSerializeFormatter
- Namespace
- Ceres.Serialization
- Assembly
- Ceres.dll
Encrypted formatter using AES encryption
public class EncryptedSerializeFormatter : ISerializeFormatter
- Inheritance
-
EncryptedSerializeFormatter
- Implements
- Inherited Members
Constructors
EncryptedSerializeFormatter()
Creates an encrypted formatter from config
public EncryptedSerializeFormatter()
EncryptedSerializeFormatter(string)
Creates an encrypted formatter with a password-based key
public EncryptedSerializeFormatter(string password)
Parameters
passwordstringPassword to derive the encryption key from
Methods
Deserialize(Stream)
Deserialize data from a stream
public string Deserialize(Stream stream)
Parameters
streamStreamSource stream to read from
Returns
- string
Deserialized data
Serialize(Stream, string)
Serialize data to a stream
public void Serialize(Stream stream, string data)