PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WEBDEV 2024 → Trouble with CryptStandard Function
Trouble with CryptStandard Function
Started by Giuseppe Bellini, Nov., 30 2018 5:03 PM - No answer
Posted on November, 30 2018 - 5:03 PM
I've to send an encrypted message to a webservice.
The service provider set the cypher method to use (AES-256-CBC), the encryption KEY and the Initialisation Vector (IV) to use to crypt the messagge before send it to the service.
So I use the CRYPTSTANDARD() function.
But the function doen't let me to pass the Initialisation Vector as a parameter.
Simply the function seems not designed to work in this way (that seems to be the correct way).
Conversely, the DecryptStandard() function let me pass the Initialisation Vector mixed with the message to crypt.
So I've tried to adopt the same method in the hope that also the cryptstandard() function work in the same mode.
And so I've mixed the desider initialisation vector with the message to cypher.
But it seems to me that, unfortunately, there's is no way to pass an initialisatin vector when it is required by the type of encryption method i must use in this case.
Any suggestion?


Thank you in advance.
Giuseppe Bellini