PHP 7.2 with mcrypt in Windows

后端 未结 3 1852
轮回少年
轮回少年 2021-02-06 12:22

There are some huge legacy systems whose dependencies on PHPs\' mcrypt are extremely important and vital (including the data storage in database). I need to find a

3条回答
  •  长发绾君心
    2021-02-06 12:53

    Note that no code or information about the mcrypt options/code.

    Probably the only problems non-standard null padding used by mcrypt. To decrypt with another implementation that does not support null padding (it is non-standard) just decrypt with no padding and then remove the null padding.

    If you also must encrypt the same as mcrypt just add null padding and encrypt with no-padding.

    Really consider migrating the current encryption or adding some flag that the encryption is (or not) mcrypt compatible.

提交回复
热议问题