PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WEBDEV 2024 → Trouble with CryptStandard Function
Trouble with CryptStandard Function
Débuté par Giuseppe Bellini, 30 nov. 2018 17:03 - Aucune réponse
Posté le 30 novembre 2018 - 17:03
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