package com.cdzy.common.secure; /** * 加解密组件 * @author 李洪贵 * @date 2025年03月17日 17:44 */ public interface SecureComponent { /** * 加密 * * @param originalText 原文 * @return 密文 */ String encrypt(String originalText,String publicKey); /** * 解密 * * @param encryptedText 密文 * @return 解密后的明文 */ String decrypt(String encryptedText, String privateKey); }