AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de archivos externos
  • Decrypting a file
fDecrypt (Example)
Decrypting a file
WINDEVWEBDEV - Código ServidorReportes y ConsultasJavaAjax The following code is used to decrypt a file. The password is entered in an edit control (EDT_Password). Priority was given to encryption security (cryptSecure).
// Declare the variables
EncryptedFile is string
DecryptedFile is string
ResDecrypt is boolean
 
// Select the encrypted file
EncryptedFile = "C:\MyDir\EncryptedFile.txt"
// Select the decrypted file
DecryptedFile = "C:\MyDir\DecryptedFile.txt"
 
// Decrypt the file
// Reminder: the password is entered in an edit control (EDT_Password)
ResDecrypt = fDecrypt(EncryptedFile, DecryptedFile, EDT_Password, cryptSecure)
 
// Display an error message if the decryption failed
IF ResDecrypt = False THEN
Error(ErrorInfo(errMessage))
ELSE
Info("The file was decrypted")
END
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 28/03/2023

Señalar un error o enviar una sugerencia | Ayuda local