|
- Binary format of an encrypted string
- Encrypting and decrypting an external file
- Encryption in PHP
- Encryption in Android/Java and decryption by a WINDEV application (or conversely)
Encrypt (Function) In french: Crypte
Warning
From version 24, Crypt is kept for backward compatibility. This function is replaced by Encrypt.
// Encrypt a string Res = Encrypt("My credit card number is 52327453829011", "Password")
// Encode a string in base 64 bufBase64 is a Buffer = Crypt(bufAEncoder, "", compressNone + cryptNo, encodeBASE64)
Syntax
<Result> = Encrypt(<String to encrypt> , <Password> [, <Type of encryption> [, <Format of encrypted string>]])
Remarks Encrypting and decrypting an external file
Related Examples:
|
Unit examples (WEBDEV): The encryption functions
[ + ] This example explains how to use the encryption/decryption functions of WEBDEV. This example allows you to: - Encrypt a character string - Decrypt a character string
|
|
Unit examples (WINDEV Mobile): The encryption functions
[ + ] Using the WLanguage encryption and decryption functions. This example is used to: - Encrypt a character string - Decrypt a character string
|
|
Training (WINDEV): WD Evaluation period
[ + ] This example explains how to limit the use of an application to a given period (evaluation period). The following topics are presented in this example: 1/ the protection of an application for a given duration 2/ the management of the registry Summary of the example supplied with WINDEV: When this example is started for the first time, it is activated for an evaluation period set to 5 days. The information regarding the date when it was first started is stored in the registry and a control key is used to check whether this date was not modified by the end user. At the end of the evaluation period, the application is locked, unless the end user provides the code for unlocking the application
|
This page is also available for…
|
|
|
| |
| | //https://forum.pcsoft.fr/fr-FR/pcsoft.br.windev/2251-about-cryptstandart-and-uncryptstandart-2254/read.awp
Encripta(St is string, Pw is string) x is string i is int n is int p is int j is int //n0 is int ok is boolean
p = 0
FOR i = 1 TO Length(St) p += 1 IF p > Length(Pw) THEN p = 1 j = Asc(Middle(Pw, p, 1)) OR 128 n = Asc(Middle(St, i))
ok = False
WHILE ok = False n = BinaryXOR(n, j) //encripta... IF n < 31 THEN //se char de controle n = (128 + n) //somar 128 e //GoTo DeNovo //ecripta novamente ELSE IF n > 127 AND n < 159 THEN //se nesta faixa pode ser char de controle n = n - 128 //tira 128 e //GoTo DeNovo //encripta novamente ELSE ok = True END END x = x + Charact(n) //concatena string encriptada
END
RESULT x |
|
|
|
| |
| |
| |
| |
| |
| |
| | |
| |