brix / crypto-js

JavaScript library of crypto standards.
Other
15.88k stars 2.39k forks source link

为什么base64.parse处理33位长字符和32位长字符串都可以得到24字节wordarray? #469

Closed v1nw1n closed 1 year ago

v1nw1n commented 1 year ago

enc.Base64.parse("h9y4qQUUmaeFHSpyMoM/zwye280t6NET")enc.Base64.parse("h9y4qQUUmaeFHS1111111111111111111")均可以得到24字节wordArray,并可用于3des加密,但是使用python对等解密时,后者b64decode时会因为长度33不符合b64编码标准而报错,python解密的实现如何处理非标准b64编码的key?