NeatUpload Documentation

ObjectProtector.Unprotect Method (String, Byte[], Byte[])

Converts a secure string back to the object tree it represents.

public static object Unprotect(
   string secureString,
   byte[] encryptionKey,
   byte[] validationKey
);

Parameters

secureString
a String returned by an earlier call to Protect
encryptionKey
the key to use to decrypt the ciphertext
validationKey
ignored

Return Value

the object that was passed to Protect

Remarks

The encryption key must have the same value as it did when Protect was called or an exception will occur.

Exceptions

Exception Type Condition
throws an Exception if the signature is not valid.

See Also

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