| 12345678910111213141516171819202122232425262728 |
- package com.malk.guangming.util;
- /**
- * RSA加密工具类 - 与德惠邮箱SSO文档保持一致
- *
- * @deprecated 已下沉到基座 {@link com.malk.util.crypto.RSACrypt},请改 import 到新位置。
- * 本类保留仅为兼容既有调用方,内部方法直接委托新类。
- */
- @Deprecated
- public class RSACrypt {
- /**
- * @deprecated 使用 {@link com.malk.util.crypto.RSACrypt#encrypt(String, String)}
- */
- @Deprecated
- public static String encrypt(String str, String publicKey) throws Exception {
- return com.malk.util.crypto.RSACrypt.encrypt(str, publicKey);
- }
- /**
- * @deprecated 使用 {@link com.malk.util.crypto.RSACrypt#toUrlSafe(String)}
- */
- @Deprecated
- public static String toUrlSafe(String base64String) {
- return com.malk.util.crypto.RSACrypt.toUrlSafe(base64String);
- }
- }
|