|
|
|
|
|
- Error handling
- Operating mode in Windows Vista (and later)
- Encrypting/Decrypting a character string
- Encryption in PHP
- Encryption in Android/Java and decryption by a WINDEV application (or conversely)
Advertencia
A partir de la versión 24, fUncrypt se conserva por motivos de compatibilidad. Esta función ha sido reemplazada por fDecrypt.
Decrypts a file that was encrypted by fEncrypt.
Sintaxis
<Result> = fDecrypt(<Path of file to decrypt> , <Path of decrypted file> , <Password> [, <Type of encryption used> [, <Format of encrypted file>]])
<Result>: Boolean - True if decryption has been completed,
- False otherwise. To get more details on the error, use ErrorInfo with the errMessage constant.
<Path of file to decrypt>: Character string Name and full (or relative) path of the file to decrypt (up to 260 characters). A UNC path can be used. This file must have been encrypted by fEncrypt.
<Path of decrypted file>: Character string Name and full (or relative) path of the decrypted file (up to 260 characters). A UNC path can be used. <Password>: Character string or Secret string Password used to decrypt the file. This password must be identical to the password used to encrypt the file. A long password provides better encryption security.
Novedad versión 2025Cadenas secretas: Si utiliza el almacén de cadenas secretas, el tipo de cadena secreta utilizado para este parámetro debe ser "ANSI o Unicode string". Para obtener más información sobre las cadenas secretas y el almacén, consulte Almacén de cadenas secretas. Novedad versión 2025 <Type of encryption used>: Optional constant Specifies the type of encryption used. This parameter must be identical to the one specified during the encryption. | | encryptFast (Default value) | Priority was given to the encryption speed (algorithm on 128 bits).
| encryptNone | No encryption was performed. | encryptRC516 | Priority is given to the encryption security (RC5 algorithm on 16 rounds).
| encryptSecure | Priority was given to the encryption security (RC5 algorithm on 128 bits).
|
<Format of encrypted file>: Optional Integer constant Specifies the format of the encrypted file. This parameter must be identical to the one specified during the encryption. | | encodeBASE64 | BASE 64 format. The encrypted file will contain printable characters only. | encodeNone or False (Default value) | Binary format. The encrypted file may contain non-printable characters. | encodePCS or True | ASCII format. The encrypted file will contain printable characters only. | encodeUUEncode | UUEncode format. The encrypted file will contain printable characters only. |
Observaciones Error handling fDecrypt throws an error in the following cases: - the file to decrypt does not exist or it is locked,
- the path of the file to decrypt is invalid,
- the <Password> is an empty string or it differs from the <Password> used to encrypt the file,
- the <Type of encryption used> differs from the <Type of encryption> specified during the encryption,
- the <Format of encrypted file> differs from the one specified during the encryption,
- the user has no read rights on the file to decrypt,
- the user has no write rights on the file to decrypt.
- a Unicode string was used for the <Path of file to decrypt> or for the <Path of decrypted file> in an operating system such as Windows 98 or Windows Me.
Encrypting/Decrypting a character string
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|