DecryptedText Property  
 

Set the value of the current decrypted text string, or return the decrypted value of an encrypted string.

Syntax

object.DecryptedText [= value ]

Remarks

The DecryptedText property is used to specify the current decrypted (plain text) value, or return the decrypted value of a previously encrypted string. If the property is set, the current text is changed to this value. Getting this property will decrypt the EncryptedText property value and return a copy of the decrypted string.

The value of the Password property will be used to generate the 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 decrypt the data. Password values that exceed 215 characters will be truncated.

Due to how the decryption key is created internally, the control cannot be used to decrypt strings previously encrypted another third-party library or component. 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 text if the password value is unknown.

Data Type

String

See Also

EncryptedText Property, Password Property, DecryptData Method, DecryptFile Method, EncryptData Method