Serializer using AES (Advanced Encryption Standard).
Namespace: Eneter.Messaging.DataProcessing.SerializingAssembly: Eneter.Messaging.Framework (in Eneter.Messaging.Framework.dll) Version: 5.0.0.0 (5.0.0.0)
Syntax
| C# |
|---|
public class AesSerializer : ISerializer |
| Visual Basic |
|---|
Public Class AesSerializer _ Implements ISerializer |
| Visual C++ |
|---|
public ref class AesSerializer : ISerializer |
Remarks
The serializer uses an underlying serializer to serialize and deserialize data.
Data encoded by the underlying serializer is then encrypted by AES.
Notice, since AesSerializer serializes into array of bytes, it is not possible to use this serializer for the communication between two Silverlight applications. The communication between two silverlight applications requires, that data is serialized into the string.
Examples
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); | |
Notice, since AesSerializer serializes into array of bytes, it is not possible to use this serializer for the communication between two Silverlight applications. The communication between two silverlight applications requires, that data is serialized into the string.