MCPcopy Create free account
hub / github.com/0opslab/opslabJutil / encrypt

Method encrypt

src/main/java/com/opslab/util/encrypt/ASEUtil.java:131–133  ·  view source on GitHub ↗

加密字符串 @param secretKey @param Str @return

(String secretKey, String Str)

Source from the content-addressed store, hash-verified

129 * @return
130 */
131 public static String encrypt(String secretKey, String Str) {
132 return Decode.str2HexStr(AESEncode(secretKey, Str));
133 }
134
135 /**
136 * 解密字符串

Callers 1

testMethod · 0.95

Calls 2

str2HexStrMethod · 0.95
AESEncodeMethod · 0.95

Tested by 1

testMethod · 0.76