AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de cifrado/compresión
  • 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 = Encrypt(StringToEncrypt, Password, cryptSecure)
// Send the message by email for example
...
// Decrypt the message later
DecryptedString = Decrypt(EncryptedString, Password, cryptSecure)
Info("The encrypted message meant: " + DecryptedString)
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: 02/05/2023

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