NeatUpload Documentation

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

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

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

Parameters

secureString
a String returned by an earlier call to Protect
encryptionKey
the key to use to decrypt the ciphertext
validationKey
ignored
encryptionAlgorithm
the algorithm to use to decrypt the ciphertext, null means use the default
validationAlgorithm
the algorithm to use to verify the signature, null means use the default

Return Value

the object that was passed to Protect

Remarks

The encryption key and algorithms must have the same values as they 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