PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 2024
→
[WM20/W20] CryptStandard/UncryptStandard
[WM20/W20] CryptStandard/UncryptStandard
Started by ARV, Mar., 22 2018 9:03 PM - No answer
Connect yourself…
ARV
#1
Registered member
498 messages
Popularité : +8 (8 votes)
Posted on March, 22 2018 - 9:03 PM
Hi
I have some issues using this function on my version of windev it doesn't get me the string I Encrypt heres my code
//Encrypt in Android
pass
is UNICODE string
=
"Password"
buf
KEY
is
Buffer
=
HashString
(
HA_MD5_128
,
pass
)
s
Messa
is UNICODE string
=
E
DT_Text
buf
Encrypt
is
Buffer
=
CryptStandard
(
s
Messa
,
buf
KEY
,
cryptAES128
)
TableDB.Pa
=
buf
Encrypt
HAdd
(
TableDB
)
Info
(
"Done"
)
//Uncrypt on PC
HReadFirst
(
TableDB
,
ID
)
pass
is UNICODE string
=
"Password"
bufkey
is
Buffer
=
HashString
(
HA_MD5_128
,
pass
)
buf
SResult2
is
Buffer
=
UncryptStandard
(
TablaErrores.Pa
,
BufKey
,
cryptAES128
)
E
DT_Uncrypt
=
buf
SResult2
IF
buf
SResult2
=
""
THEN
Info
(
ErrorInfo
(
errFullDetails
)
)
END
For some reason it only uncrypt the first letter of my message the rest it's lost.
Next time I will try with Ansi but I don't think is that the problem.
Any Ideas my fellows developers?
Best Regards.
Report
0
0
→ Go back to WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text