src/openSourceC.DotNetLibrary.Core/XmlSerialize.cs
/// <summary>
///		Encrypts and serializes the specified object using the <see cref="T:RijndaelManaged"/>
///		algorithm, specified key, and initialization vector, returning a base 64 encoded
///		string of the encrypted data.
/// </summary>
/// <typeparam name="TObject">The type of the object to serialize.</typeparam>
/// <param name="obj">The <see cref="object"/> to serialize.</param>
/// <param name="key">Encryption key.</param>
/// <param name="iv">Encryption initialization vector.</param>
/// <param name="supportXsiNamespace"><b>true</b> to support xsi namespace (i.e. xsi:type,
///		xsi:nil, xsi:schema, xsi:schemaLocation, and xsi:noNamespaceSchemaLocation).</param>
/// <returns>
///		An XML formatted string representation of the object.
/// </returns>
Encrypts and serializes the specified object using the
algorithm, specified key, and initialization vector, returning a base 64 encoded
string of the encrypted data.
Encrypts and serializes the specified object using the algorithm specified key and initialization vector returning a base 64 encoded string of the encrypted data .
public static string EncryptToBase64String<TObject>(TObject obj, byte[] key, byte[] iv, bool supportXsiNamespace = false)
			where TObject : notnull
		{
			return EncryptToBase64String<TObject, RijndaelManaged>(obj, key, iv, supportXsiNamespace);
		}
public static string EncryptToBase64String < TObject > ( TObject obj , byte [ ] key , byte [ ] iv , bool supportXsiNamespace = false ) where TObject : notnull { return EncryptToBase64String < TObject , RijndaelManaged > ( obj , key , iv , supportXsiNamespace ) ; }
Encrypts and serializes the specified object using the
algorithm, specified key, and initialization vector, returning a base 64 encoded
string of the encrypted data.
Encrypts and serializes the specified object using the algorithm specified key and initialization vector returning a base 64 encoded string of the encrypted data .
// RijndaelManaged // DESCryptoServiceProvider // RC2CryptoServiceProvider // TripleDESCryptoServiceProvider
An XML formatted string representation of the object.
An XML formatted string representation of the object .
obj
TObject
The  to serialize.
The to serialize .
key
byte[]
None
iv
byte[]
Encryption initialization vector.
Encryption initialization vector .
supportXsiNamespace
bool
None
typeparam
The type of the object to serialize.
The type of the object to serialize .