I tried a couple of combination while on a coffee break, but couldn’t find the right one, but I’ll leave here some hints that still may help:
- (nope) RIJNDAEL_256 in MODE_ECB should map to
:aes_256_ecbAFAIK ← I was wrong, it is a variation, so this post is wrong! Sorry for that, I have been misleaded by poor research - ECB is a block cipher, so output should be unpadded after decryption. However, afaik mcrypt uses a %00 padding (source) that should be easy to spot
- key in the example is 192 bits, so I suppose mcrypt is padding it too. I cannot find evidence of this, however (I find instead occurrences of helper functions to pad the key manually on github), so this kinda smells to me
Hope there is some useful hint here, working with crypto stuff is always an adventure! Will try again alter maybe, but let us know if you find a correct translation in the meantime!


















