解决方案 »

  1.   

    有没有人在PHP5.6+的版本中使用过这个加密方法的?出来帮助一下新人吧
      

  2.   

    你的代码是有问题的(php 5.4.31)
    会有 Size of key is too large for this algorithm  信息出现:键的尺寸太大
    不用 MD5 则可正常而在 php 5.6.3 中
    不用 MD5 时的错误信息是:Key of size 8 not supported by this algorithm. Only keys of size 24 supported 
    用 MD5 时的错误信息是:Key of size 32 not supported by this algorithm. Only keys of size 24 supported 
    所以你只需调整key 的长度为 24 即可