NeatUpload Documentation

ObjectProtector.Protect Method (Object)

Converts an object tree to a secure string.

public static string Protect(
   object objectToSerialize
);

Parameters

objectToSerialize
the object at the root of the object tree to protect.

Return Value

a secure string that can be passed to Unprotect to retrieve the original object.

Remarks

The encryption key and algorithms specified in the encryptionKey, encryption, and validation attributes of the <neatUpload> element are used to encrypt the serialized object and sign it, respectively. They must have the same values when Unprotect is called or an exception will occur.

See Also

ObjectProtector Class | Brettle.Web.NeatUpload Namespace | ObjectProtector.Protect Overload List