Password Property  
 

Gets and sets the password used to encrypt and decrypt data.

Syntax

object.Password [= value ]

Remarks

The Password property specifies the value which is used to generate the encryption and decryption key. If the Password property has not been set, or if it's an empty string, an default internal hash value is used to encrypt and decrypt the data. Password values that exceed 215 characters will be truncated.

Although it is not required for your application to use a password to encrypt the data, it is recommended. If no password is specified, any other application that uses this control will be able to decrypt the data. Passwords are case-sensitive and must match exactly, including the use of any spaces. If this property value is not identical to what was used to encrypt the data, attempts to decrypt the data will fail.

The encryption is performed using the 256-bit AES (Advanced Encryption Standard) algorithm, and the key is generated using an SHA-256 hash of the password value. It is not possible to recover previously encrypted data if the password value is unknown.

Data Type

String

See Also

DecryptedText Property, EncryptedText Property, DecryptFile Method, EncryptFile Method