Jump to content


New Members
  • Posts

  • Joined

  • Last visited

Everything posted by mistvan

  1. Thanks, heylify was just a typo, the code was working. Unfortunately I can't modify the python script, because it's not mine and running on a remote server. Thanks for your reply, István
  2. I finally got it, it generates almost the same: bin2hex(openssl_encrypt(openssl_digest($bemenet,'md5',true), 'aes-256-ecb', $key, OPENSSL_RAW_DATA));
  3. Hi, I'm very new to python and I have a question about AES. I have to use a function in both python and PHP which uses AES/ECB crypto, but couldn't get the equivalent output. The following python code is my starting point: from Crypto.Cipher import AES ... path = text.encode("utf-8") h = MD5.new(path) path_hash = h.digest() aes = AES.new(aes_key, AES.MODE_ECB) signing = aes.encrypt(path_hash) signing = heylify(signing) signing = signing.decode("utf-8") I tried to get the same result with php openssl_encrypt, but none of the cryptos resulted the same. Any help would be greatly appreciated. István
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.