PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Encrypting and decrypting a character string
Encrypting and decrypting a character string
The following example is used to encrypt and decrypt a character string.
// Declare and initialize the variables
StringToEncrypt is string = "The number of my account in Switzerland is 74538290"
Password is string = "JamesBond007"
EncryptedString is string
DecryptedString is string
 
// Encrypt the message
EncryptedString = Crypt(StringToEncrypt, Password, cryptSecure)
 
// Send the message by email for example
...
// Decrypt the message later
DecryptedString = Uncrypt(EncryptedString, Password, cryptSecure)
Info("The encrypted message meant: " + DecryptedString)
 
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment