ICustomSecurityHandler.GetUserKey
ICustomSecurityHandler.GetUserKey method
Creates an encoded array based on the user’s password. This value is typically used to check if the password belongs to the user or owner, and to get the encryption key. Called during encryption to prepare it and populate the encryption dict. The user-specified password is passed as an argument when calling document encryption.
public byte[] GetUserKey(string userPassword)
Parameter | Type | Description |
---|---|---|
userPassword | String | The user password. |
Return Value
The array of user key.
See Also
- interface ICustomSecurityHandler
- namespace Aspose.Pdf.Security
- assembly Aspose.PDF