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

key怎么做处理? #2

Closed
deliangliao opened this issue Jul 8, 2017 · 1 comment
Closed

key怎么做处理? #2

deliangliao opened this issue Jul 8, 2017 · 1 comment

Comments

@deliangliao
Copy link

请问下:
1.真实的key为:1234567890abcdef,怎么处理成:NMTIzNDU2Nzg5MGFiY2RlZg?
2.加密结果要怎么处理,不让它出现特殊字符,如加号(+) 和 等号(=),只由字母和数字组成?

thanks.

@BruceWind
Copy link
Owner

BruceWind commented Jul 10, 2017

1."N"+base64("1234567890abcdef")=NMTIzNDU2Nzg5MGFiY2RlZg (我只是做了个简单的例子,其实密文的存储可以写的更加繁琐,配合C代码混淆,增大了破解难度。)
2.此处所指的 加密是指AES加密的结果? 如果是的话,我没法回答你怎么去除特殊符号,但是密文结尾的“==”可以删除的,这点我可以保证。(如果你想除去密文中其他的特殊字符,可能需要你手动去修改加解密算法了。)

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