Click or drag to resize

AesSerializer Class

Serializer using AES (Advanced Encryption Standard).
Inheritance Hierarchy

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

The AesSerializer 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 uses an underlying serializer to serialize and deserialize data. Data encoded by the underlying serializer is then encrypted by AES.
Encrypted serialization with XmlStringSerializer
// Create the serializer. The defualt constructor uses XmlStringSerializer.
AesSerializer aSerializer = new AesSerializer("My password.");

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

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