Input length must be multiple of 8 when decrypting with padded cipher

时间:2024-04-04 20:01:02

今天给数据库的用户和密码加密的时候 报错 Input length must be multiple of 8 when decrypting with padded cipher

原因   : 自己在红色箭头的位置 加了个分号,导致无论怎样都会执行Input length must be multiple of 8 when decrypting with padded cipher


Input length must be multiple of 8 when decrypting with padded cipher


分析: 报这个 错误,应该是 将未被加密过的字符串解密。  

比如root 被加密成 WMYfCpui1FY=,调用自己写的deCode(WMYfCpui1FY=) ,但由于我if加了分号,导致驱动和url也被解码了。