- 浏览: 858 次
最新评论
文章列表
java加密解密总结例子2
import java.security.KeyFactory;
import java.security.PrivateKey;
import java.security.PublicKey;
import java.security.spec.PKCS8EncodedKeySpec;
import java.security.spec.X509EncodedKeySpec;
import org.apache.commons.codec.binary.Base64;
import org.springframework.stereotype.S ...
总结下java加密解密的方法,供以后参考:
public class UmsEncryptUtil {
private static final Logger logger = LoggerFactory.getLogger(UmsEncryptUtil.class);
public static final String KEYPATH = SysProService.getProValue("ums_private_trans_keyPath");
/**
* 加密
* @param content
* @param ...