MCPcopy Create free account

hub / github.com/GcsSloop/encrypt / functions

Functions48 in github.com/GcsSloop/encrypt

↓ 15 callersMethodmd5
MD5加密 @param string 加密字符串 @return 加密结果字符串 @see #md5(String, String)
encryptlib/src/main/java/com/gcssloop/encrypt/oneway/MD5Util.java:48
↓ 10 callersMethodsha
Sha加密 @param string 加密字符串 @param type 加密类型 :{@link #SHA224},{@link #SHA256},{@link #SHA384},{@link #SHA512} @return SHA加密结果字符串
encryptlib/src/main/java/com/gcssloop/encrypt/oneway/SHAUtil.java:53
↓ 9 callersMethodisEmpty
(String str)
encryptlib/src/main/java/com/gcssloop/encrypt/base/TextUtils.java:26
↓ 8 callersMethodrsa
Rsa加密/解密(一般情况下,公钥加密私钥解密) @param data 源数据 @param string 密钥(BASE64编码) @param type 操作类型:{@link #RSA_PUBLIC_ENCRYPT},{@link #RSA_PUBLIC_DECRYPT
encryptlib/src/main/java/com/gcssloop/encrypt/unsymmetric/RSAUtil.java:195
↓ 6 callersMethoddecode
Decode the Base64-encoded data in input and return the data in a new byte array. <p> <p>The padding '=' characters at the end are considered optional,
encryptlib/src/main/java/com/gcssloop/encrypt/base/Base64.java:115
↓ 4 callersMethodaes
Aes加密/解密 @param content 字符串 @param password 密钥 @param type 加密:{@link Cipher#ENCRYPT_MODE},解密:{@link Cipher#DECRYPT_MODE} @return 加密/解密结果字符串
encryptlib/src/main/java/com/gcssloop/encrypt/symmetric/AESUtil.java:64
↓ 4 callersMethodclose
(Closeable closeable)
encryptlib/src/main/java/com/gcssloop/encrypt/base/CloseUtils.java:29
↓ 4 callersMethoddes
Des加密/解密 @param content 字符串内容 @param password 密钥 @param type 加密:{@link Cipher#ENCRYPT_MODE},解密:{@link Cipher#DECRYPT_MODE} @return 加密/解密结果
encryptlib/src/main/java/com/gcssloop/encrypt/symmetric/DESUtil.java:59
↓ 4 callersMethodencode
Base64-encode the given data and return a newly allocated byte[] with the result. @param input the data to encode @param flags controls certain featu
encryptlib/src/main/java/com/gcssloop/encrypt/base/Base64.java:467
↓ 4 callersMethodgetKey
获取公钥/私钥 @param keyMap 密钥对 @param isPublicKey true:获取公钥,false:获取私钥 @return 获取密钥字符串
encryptlib/src/main/java/com/gcssloop/encrypt/unsymmetric/RSAUtil.java:82
↓ 3 callersMethodgetKeyFactory
获取 KeyFactory @throws NoSuchAlgorithmException 异常
encryptlib/src/main/java/com/gcssloop/encrypt/unsymmetric/RSAUtil.java:134
↓ 2 callersMethodbase64DecodedStr
Base64解密 @param string 解密字符串 @return 解密结果字符串
encryptlib/src/main/java/com/gcssloop/encrypt/encode/Base64Util.java:55
↓ 2 callersMethodbase64EncodeStr
Base64加密 @param string 加密字符串 @return 加密结果字符串
encryptlib/src/main/java/com/gcssloop/encrypt/encode/Base64Util.java:44
↓ 2 callersMethodencodeToString
Base64-encode the given data and return a newly allocated String with the result. @param input the data to encode @param flags controls certain featu
encryptlib/src/main/java/com/gcssloop/encrypt/base/Base64.java:428
↓ 2 callersMethodgetKeyPair
随机获取密钥(公钥和私钥), 客户端公钥加密,服务器私钥解密 @return 结果密钥对 @throws Exception 异常
encryptlib/src/main/java/com/gcssloop/encrypt/unsymmetric/RSAUtil.java:61
↓ 2 callersMethodparseByte2HexStr
二进位组转十六进制字符串 @param buf 二进位组 @return 十六进制字符串
encryptlib/src/main/java/com/gcssloop/encrypt/base/BaseUtils.java:32
↓ 2 callersMethodparseHexStr2Byte
十六进制字符串转二进位组 @param hexStr 十六进制字符串 @return 二进位组
encryptlib/src/main/java/com/gcssloop/encrypt/base/BaseUtils.java:50
↓ 2 callersMethodsign
获取数字签名 @param data 二进制位 @param privateKey 私钥(BASE64编码) @return 数字签名结果字符串 @throws Exception 异常
encryptlib/src/main/java/com/gcssloop/encrypt/unsymmetric/RSAUtil.java:95
↓ 2 callersMethodverify
数字签名校验 @param data 二进位组 @param publicKey 公钥(BASE64编码) @param sign 数字签名字符串 @return true:校验成功,false:校验失败 @throws Exception 异常
encryptlib/src/main/java/com/gcssloop/encrypt/unsymmetric/RSAUtil.java:116
↓ 1 callersMethodgetKeyPairGenerator
获取 KeyFactory @throws NoSuchAlgorithmException 异常
encryptlib/src/main/java/com/gcssloop/encrypt/unsymmetric/RSAUtil.java:150
↓ 1 callersMethodprocess
Decode another block of input data. @return true if the state machine is still healthy. false if bad base-64 data has been detected in the input str
encryptlib/src/main/java/com/gcssloop/encrypt/base/Base64.java:253
↓ 1 callersMethodprocess
(byte[] input, int offset, int len, boolean finish)
encryptlib/src/main/java/com/gcssloop/encrypt/base/Base64.java:564
MethodBase64
()
encryptlib/src/main/java/com/gcssloop/encrypt/base/Base64.java:687
MethodCryptoProvider
Creates a Provider and puts parameters
encryptlib/src/main/java/com/gcssloop/encrypt/base/CryptoProvider.java:35
MethodDecoder
(int flags, byte[] output)
encryptlib/src/main/java/com/gcssloop/encrypt/base/Base64.java:232
MethodEncoder
(int flags, byte[] output)
encryptlib/src/main/java/com/gcssloop/encrypt/base/Base64.java:545
Methodaddition_isCorrect
()
app/src/test/java/com/gcssloop/encrypttest/ExampleUnitTest.java:13
Methodaes_test
aes 工具单元测试 @throws Exception
encryptlib/src/test/java/com/gcssloop/encrypt/EncryptTest.java:90
Methodaes_test
aes 工具单元测试 @throws Exception
encryptlib/src/androidTest/java/com/gcssloop/encrypt/EncryptInstrumentedTest.java:106
Methodbase64DecodedFile
Base64解密 @param filePath 解密文件路径 @param code 解密文件编码 @return 解密结果文件
encryptlib/src/main/java/com/gcssloop/encrypt/encode/Base64Util.java:90
Methodbase64EncodeFile
Base64加密 @param file 加密文件 @return 加密结果字符串
encryptlib/src/main/java/com/gcssloop/encrypt/encode/Base64Util.java:66
Methodbase64_test
base64 工具单元测试 @throws Exception
encryptlib/src/test/java/com/gcssloop/encrypt/EncryptTest.java:77
Methodbase64_test
base64 工具单元测试 @throws Exception
encryptlib/src/androidTest/java/com/gcssloop/encrypt/EncryptInstrumentedTest.java:93
Methoddes_test
des 工具单元测试 @throws Exception
encryptlib/src/test/java/com/gcssloop/encrypt/EncryptTest.java:109
Methoddes_test
des 工具单元测试 @throws Exception
encryptlib/src/androidTest/java/com/gcssloop/encrypt/EncryptInstrumentedTest.java:125
MethodmaxOutputSize
@return the maximum number of bytes a call to process() could produce for the given number of input bytes. This may be an overestimate.
encryptlib/src/main/java/com/gcssloop/encrypt/base/Base64.java:95
MethodmaxOutputSize
@return an overestimate for the number of bytes {@code len} bytes could decode to.
encryptlib/src/main/java/com/gcssloop/encrypt/base/Base64.java:243
MethodmaxOutputSize
@return an overestimate for the number of bytes {@code len} bytes could encode to.
encryptlib/src/main/java/com/gcssloop/encrypt/base/Base64.java:560
Methodmd5_test
md5 工具单元测试 @throws Exception
encryptlib/src/test/java/com/gcssloop/encrypt/EncryptTest.java:52
Methodmd5_test
md5 工具单元测试 @throws Exception
encryptlib/src/androidTest/java/com/gcssloop/encrypt/EncryptInstrumentedTest.java:65
MethodonCreate
(Bundle savedInstanceState)
app/src/main/java/com/gcssloop/encrypttest/MainActivity.java:9
Methodprocess
Encode/decode another block of input data. this.output is provided by the caller, and must be big enough to hold all the coded data. On exit, this.o
encryptlib/src/main/java/com/gcssloop/encrypt/base/Base64.java:88
Methodrsa_test
rsa 工具单元测试 @throws Exception
encryptlib/src/test/java/com/gcssloop/encrypt/EncryptTest.java:151
Methodrsa_test
rsa 工具单元测试 @throws Exception
encryptlib/src/androidTest/java/com/gcssloop/encrypt/EncryptInstrumentedTest.java:166
Methodsha_test
sha 工具单元测试 @throws Exception
encryptlib/src/test/java/com/gcssloop/encrypt/EncryptTest.java:129
Methodsha_test
sha 工具单元测试 @throws Exception
encryptlib/src/androidTest/java/com/gcssloop/encrypt/EncryptInstrumentedTest.java:144
MethoduseAppContext
()
app/src/androidTest/java/com/gcssloop/encrypttest/ExampleInstrumentedTest.java:19
MethoduseAppContext
()
encryptlib/src/androidTest/java/com/gcssloop/encrypt/EncryptInstrumentedTest.java:52