PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → Decrypt, Encrypt on WD24 and WD Mobile 24
Decrypt, Encrypt on WD24 and WD Mobile 24
Débuté par HOELB, 07 nov. 2019 18:42 - Aucune réponse
Posté le 07 novembre 2019 - 18:42
Hello WINDEV and WINDEV MOBILE colleagues!

I hope I am in the right forum because my problem WINDEV and WINDEV Mobile concerns.
I'm using the latest version of WINDEV24 and WINDEV Mobile24

I have the following problem!

I encrypt a string in WINDEV Mobile that can not be decrypted in WINDEV.
I made a simple test and found that the same function gives different results

WINDEV 24
sResEncrypt is UNICODE string = Encrypt("123", "Password",cryptSecure,encodePCS)
// sResEncrypt = "ZSKY"
sResDecrypt is UNICODE string = Decrypt("ZSKY", "Password",cryptSecure,encodePCS)
// sResDecrypt ="12345ABCDE"


WINDEV MOBILE 24 on IOS
sResEncrypt is UNICODE string = Encrypt("123", "Password",cryptSecure,encodePCS)
// sResEncrypt = "jA9WH4CiR1L0rjW3"
sResDecrypt is UNICODE string = Decrypt("jA9WH4CiR1L0rjW3", "Password",cryptSecure,encodePCS)
// sResDecrypt ="123"


The funny thing is that the string that was encrypted with WINDEV MOBILE is actually partially decoded in WINDEV.
But after every decrypted character the string <0> <0> <0> is attached
123 = 1<0><0><0>2<0><0><0>3<0><0><0>


can anyone help me please :-)

Kind regards Gerhard