public class Rsa2SignUtil extends Object
| 构造器和说明 |
|---|
Rsa2SignUtil() |
public static void genKeyPair()
throws NoSuchAlgorithmException
public static String getParam(String user, String password, String publicKey) throws Exception
user - password - publicKey - Exceptionpublic static String encrypt(String str, String publicKey) throws Exception
str - 加密字符串publicKey - 公钥Exception - 加密过程中的异常信息Copyright © 2025. All rights reserved.