android_crypt模块介绍
android_crypt模块中封装了庞老师的加密库以及相关的so文件,统一依赖方式。
1、模块简介:
具体加密方式在c层,java层只提供方法调用:
CalculatMd5 : 用于计算字符串的Md5值
GetRsaKeypair : 获取RSA的公钥和秘钥
RsaEncryptWithPublicKey : 使用RSA公钥进行加密
RsaDecryptWithPublicKey : 使用RSA公钥进行解密
RsaEncryptWithPrivateKey : 使用RSA私钥进行加密
RsaDecryptWithPrivateKey : 使用RSA私钥进行解密
GenerateRandomKey : 生成对称加密的秘钥
2、注意:
android_siptran模块涉及到数据加密功能,需要同时依赖本模块。
如何使用:
api 'com.sumavision.android_crypt:android_crypt:v1.x.x'
查看源码:
svn://192.165.152.13/sumard5/Project/Tetris/trunk/platform/android-platform/AndroidPlatform/android_crypt
This blog is under a CC BY-NC-SA 3.0 Unported License
本文链接:http://yeguli.cn/2018/01/10/android-crypt模块介绍/