Click or drag to resize

RijndaelSerializer Class

Serializer using Rijndael encryption.
Inheritance Hierarchy

Namespace:  Eneter.Messaging.DataProcessing.Serializing
Assembly:  Eneter.Messaging.Framework (in Eneter.Messaging.Framework.dll) Version: (
public class RijndaelSerializer : ISerializer

The RijndaelSerializer type exposes the following members.

Public methodDeserialize_T
Deserializes data into the specified type.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSerialize_T
Serializes data to the object. The returned object is type of byte[]. Returned bytes are encrypted.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
The serializer internally uses some other serializer to serialize and deserialize data. Then it uses Rijndael to encrypt and decrypt the data.
Encrypted serialization with XmlStringSerializer
// Create the serializer. The defualt constructor uses XmlStringSerializer.
RijndaelSerializer aSerializer = new RijndaelSerializer("My password.");

// Create some data to be serialized.
MyData aData = new MyData();

// Serialize data with using Rijndael.
object aSerializedData = aSerializer.Serialize<MyData>(aData);
See Also