Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AES PKCS7加密使用PKCS5的问题 #21

Open
mssky9527 opened this issue Apr 6, 2022 · 2 comments
Open

AES PKCS7加密使用PKCS5的问题 #21

mssky9527 opened this issue Apr 6, 2022 · 2 comments

Comments

@mssky9527
Copy link

mssky9527 commented Apr 6, 2022

当时我拿到了这段username=admin&password=admin&code=123123&isMandatory%5BisTrusted%5D=true的密文,第一次解密的时候是没有经过这个插件来对以上字符串加密的(密钥和偏移量都给对了),提示not found,然后我使用这个插件对上面这段字符进行加密之后(加密后和原来js加密的一致的),再来对刚才提示not found的那段密文进行解密就能解出来,但是没有加密之前就不能解出来

@whwlsfb
Copy link
Owner

whwlsfb commented Apr 7, 2022

这个是“Get PlainText”的设计逻辑导致的,这个功能不具备“解密”功能,之所以你能通过加密后重新"解密"获取原始明文,其实是因为这是通过本地的K/V数据库查询得到的。目前由于部分算法产生的结果具有不可逆性(哈希算法、自定义的JS代码等)所以暂未确定具体解密的代码逻辑,所以也暂时不具备直接解密功能。之前也有师傅问过类似的问题 #13

@mssky9527
Copy link
Author

好的,谢谢师傅的解答

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants