Libraries: Bcrypt

 

Bcrypt:

Class for working with AES-256 encryption.

This class makes use of the MQL5 built-in function CryptEncode() to encrypt/decrypt data. Also, it converts the generated data by CryptEncoded() into a HEX string and vice-versa.

Author: Romeu Bertho

 

Hi,


I have tried a lot to get it working in compatibilty with openssl functions, but without further success.


Could you provide some examples, on how to use with AES-256-ECB which can be simply decoded with openssl ? You could also use this page as example, to confirm, the compatibilty of it: https://encode-decode.com/aes-256-ecb-encrypt-online/

to be honest, I found no solution. Only other questions, which were also using your library.

And could you change your class, that it would be possible to switch between the methods ? You wrote, you are using the MQL encrypt method, but it seems it is not really compatible with the new "standards". But a passing parameter of which method which would be used would be fine - https://www.mql5.com/en/docs/constants/namedconstants/otherconstants#enum_crypt_method


Even if your class "is still a while" ago, I hope you are still active, and can do this changes.


Regards

Marquez
 
marquez:

Hi,


I have tried a lot to get it working in compatibilty with openssl functions, but without further success.


Could you provide some examples, on how to use with AES-256-ECB which can be simply decoded with openssl ? You could also use this page as example, to confirm, the compatibilty of it: https://encode-decode.com/aes-256-ecb-encrypt-online/

to be honest, I found no solution. Only other questions, which were also using your library.

And could you change your class, that it would be possible to switch between the methods ? You wrote, you are using the MQL encrypt method, but it seems it is not really compatible with the new "standards". But a passing parameter of which method which would be used would be fine - https://www.mql5.com/en/docs/constants/namedconstants/otherconstants#enum_crypt_method


Even if your class "is still a while" ago, I hope you are still active, and can do this changes.


Regards

Marquez

Hello Markus,

I answered you by email.

Sorry to take so long.

Best regards,

Romeu Bertho.

 
It is a shame you did that in private, because I am having similar problem.
 
I was implementing my own Encrypt, but I was having problems with hexadecimal conversion.
But with your library it was unnecessary for me to continue. It works very well. Thanks!
 
Joao Luiz Sa Marchioro #:
I was implementing my own Encrypt, but I was having problems with hexadecimal conversion.
But with your library it was unnecessary for me to continue. It works very well. Thanks!

Is there an MQL4 version of this library?