MCrypt rijndael-128 to OpenSSL aes-128-ecb conversion

前端 未结 3 1382
攒了一身酷
攒了一身酷 2020-11-29 07:47

Since Mcrypt is deprecated, I want to use OpenSSL instead in my code since we already using php 7.0.17 in our server and there\'s no tell when they upgrade

3条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-29 08:24

    In your specific example I've found that by changing aes-128-ecb to aes-256-ecb, it produces the same output as the legacy mcrypt_encrypt.

提交回复
热议问题