PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → WX 20 CRYPT and UNCRYPT
WX 20 CRYPT and UNCRYPT
Iniciado por guest, 15,abr. 2015 15:05 - 3 respuestas
Publicado el 15,abril 2015 - 15:05
Hello my friends :xcool:

In my WinDev webservices i use this command to CRYPT a string
EncryptedString is string = Crypt(Resultaat, GLOEncryptionKey, cryptSecure)

In my WinDev Mobile Android APP i use this string to UNCRYPT
Resultaat is string = Uncrypt(EncryptedString ,GLOEncryptionKey,cryptSecure)

But I get an empty Resultaat string

What am i doing wrong ??

TIA
Jan
Publicado el 15,abril 2015 - 15:22
Jan,

The crypt and uncrypt commands are not compatible between platforms (Windev and WinDev Mobile, see the related help), you have to use the new Wx20 CryptStandard and UncryptStandard to be able todo this.

See: <a class="ExternalLink" rel="nofollow" target="_blank" href="http://doc.pcsoft.fr/en-US/?1000021293&name=cryptstandard_function">http://doc.pcsoft.fr/en-US/?1000021293&name=cryptstandard_function</a>

Have a nice day
Danny
Publicado el 15,abril 2015 - 15:22
Hi Jan,

In version 20 use CryptStandard() and UncryptStandard() to avoid compatibility issues.

If you really want to use Crypt and Uncrypt, make sure you handle properly the fact that on one planform this is ANSI strings, on the other UNICODE strings, and that some options are not compatible. For example the cryptSecure on a PC is not the same as on a Mobile. (Check the help you will see: <a class="ExternalLink" rel="nofollow" target="_blank" href="http://doc.windev.com/en-US/?3024014">http://doc.windev.com/en-US/&hellip;</a>)

Best regards,
Alexandre Leclerc
Publicado el 16,abril 2015 - 15:13
Thanks guys

I overlooked that part

Jan