PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Decrypting a file
  • Decrypting a file (WINDEV Mobile)
fDecrypt (Example)
Decrypting a file
Decrypting a file (WINDEV Mobile)
Windows Mobile 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 = "\My files\FileA.txt"
DecryptedFile is string = "\My files\FileB.txt"
ResDecrypt is boolean

// 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
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment