赞
踩
- package org.springblade.common.utils;
-
- import org.apache.commons.codec.binary.Base64;
- import org.springframework.stereotype.Component;
-
- import javax.crypto.Cipher;
- import java.security.*;
- import java.security.interfaces.RSAPrivateKey;
- import java.security.interfaces.RSAPublicKey;
- import java.security.spec.PKCS8EncodedKeySpec;
- import java.security.spec.X509EncodedKeySpec;
- import java.util.HashMap;
- import java.util.Map;
-
- @Component
- public class RsaUtil {
- // @Value("${zyplayer.doc.privateKey:}")
- private static String privateKey = "MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAMcZUUdstWrwb1wi\n" +
- "IuO4Id8W+yBuNZSUJDwpksQKBC+kyWX1kf2PDGtgJyW14pPufsCKuicjumAhsy+I\n" +
- "pNALtyMLjUGV9Zg5Bq++A60Q5F3ih/0PIINiT2i+uTVRNWK8SphSrnNSQNPWGlqt\n" +
- "LrPsLb7003TCkAnpuQlc8cFidJH7AgMBAAECgYBHWLY8ryMP0FtHm9/+1JQmuriB\n" +
- "NZ0zwiZ9/LPgVmqLnDSjue13/JQJwmok5Fnugw
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。