I agree with you that the function is implemented with some limitations.
I had also expected to see CBC with an initial IV and PKCS#5/7 padding.
Maybe in the future.
Marco vd Heijden:
Jusy use StringToCharArray(text,src, 0, StringLen(src))I agree with you that the function is implemented with some limitations.
I had also expected to see CBC with an initial IV and PKCS#5/7 padding.
Maybe in the future.
And the same also for the key to remove trailing zero from strings.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I was trying to understand CryptEncode() in order to send and receive strings between mt4 indicator and php server.
but When a string is encrypted on mql4 side its totally different then when its encrypted on the php side , same key and same encryption algorithm is used on both ends, but still the encryption is different on both sides
And when i use an online tool to decrypt the php encrypted string it successfully decrypts the sting , whereas when i use the mql4 generated encrypted string it says final block is not properly padded.
Code:
Why is it that mql4 generated encrypted string different from a string generated by any other language ?
how to avoid this issue ?
and is there any alternative encryption library available to avoid this issue ?
Thank you