MCPcopy Create free account
hub / github.com/SeanDragon/protools / toKey

Method toKey

security/src/main/java/pro/tools/security/ToolIDEA.java:56–61  ·  view source on GitHub ↗

转换密钥 @param key 二进制密钥 @return Key 密钥 @throws Exception

(byte[] key)

Source from the content-addressed store, hash-verified

54 * @throws Exception
55 */
56 private static Key toKey(byte[] key) {
57 // 生成秘密密钥
58 SecretKey secretKey = new SecretKeySpec(key, KEY_ALGORITHM);
59
60 return secretKey;
61 }
62
63 /**
64 * 解密

Callers 2

decryptMethod · 0.95
encryptMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected