RSACrypt.java 855 B

12345678910111213141516171819202122232425262728
  1. package com.malk.guangming.util;
  2. /**
  3. * RSA加密工具类 - 与德惠邮箱SSO文档保持一致
  4. *
  5. * @deprecated 已下沉到基座 {@link com.malk.util.crypto.RSACrypt},请改 import 到新位置。
  6. * 本类保留仅为兼容既有调用方,内部方法直接委托新类。
  7. */
  8. @Deprecated
  9. public class RSACrypt {
  10. /**
  11. * @deprecated 使用 {@link com.malk.util.crypto.RSACrypt#encrypt(String, String)}
  12. */
  13. @Deprecated
  14. public static String encrypt(String str, String publicKey) throws Exception {
  15. return com.malk.util.crypto.RSACrypt.encrypt(str, publicKey);
  16. }
  17. /**
  18. * @deprecated 使用 {@link com.malk.util.crypto.RSACrypt#toUrlSafe(String)}
  19. */
  20. @Deprecated
  21. public static String toUrlSafe(String base64String) {
  22. return com.malk.util.crypto.RSACrypt.toUrlSafe(base64String);
  23. }
  24. }