Преглед изворни кода

山东济宁-苏州亚科-银企直连 测试PUBLIC_KEY

dujj пре 2 година
родитељ
комит
dfbdf85f91
1 измењених фајлова са 7 додато и 6 уклоњено
  1. 7 6
      AuthorizationSign/NewRsaHelper.cs

+ 7 - 6
AuthorizationSign/NewRsaHelper.cs

@@ -11,12 +11,13 @@ namespace AuthorizationSign
     public class NewRsaHelper
     {
         //public const string ASN_PUBLIC_KEY = @"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCMivG439/MBZoeZlWDo5So0Y5lMcw7QOPkvNqtVMhuThVtlLKjmg5AdT2oZejAQojlq5kHEhhRSFAsALzEaRCLJmf+8JwmvIBg8n/Vr8z4ALyfsrpSrU/3J/USC+K2f8OAFutj7WD0H21xY8KcvTTQmJ+hy6VKb8C6Ma324vmxOwIDAQAB";
-        public const string ASN_PUBLIC_KEY = @"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCZ82s9MOWq4J18jYs08ceUiyw/QOh4mdUdNz7Tv7IPZCR3BQy6sEmJ9ZI1cLU6VJAdDKY4TAswC/Ul18/GXyCq3dmOBncFiRey/ShQ78J3aIgogQLwMLdIH+tM/CeZDNRwRpYJ5CNI5hu4S73qnc+J1yL5MByp5QHcBBX6S9KdnwIDAQAB";
-        /// <summary>
-        /// RSA公钥格式转换,java->.net
-        /// </summary>
-        /// <param name="publicKey"></param>
-        /// <returns></returns>
+        //public const string ASN_PUBLIC_KEY = @"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCZ82s9MOWq4J18jYs08ceUiyw/QOh4mdUdNz7Tv7IPZCR3BQy6sEmJ9ZI1cLU6VJAdDKY4TAswC/Ul18/GXyCq3dmOBncFiRey/ShQ78J3aIgogQLwMLdIH+tM/CeZDNRwRpYJ5CNI5hu4S73qnc+J1yL5MByp5QHcBBX6S9KdnwIDAQAB";
+        public const string ASN_PUBLIC_KEY = @"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDKkhXDMnHhY6KhADT9Glj0q/qLPIaXgLT+vNeHA0tS64u3rt4KoKst51oD21ZpNSzfbNtc5Awb+4evXjLuCFlxQs3TksWk75K2Aph/a/JKGKxvnxHWBvpukjYr4khghAiiGyXFjgmkzVdHLPSL5Q45ZMEHTkek1g//xhKFyyrwfQIDAQAB";
+            /// <summary>
+            /// RSA公钥格式转换,java->.net
+            /// </summary>
+            /// <param name="publicKey"></param>
+            /// <returns></returns>
         public static string RSAPublicKeyJava2DotNet(string publicKey)
         {
             RsaKeyParameters publicKeyParam = (RsaKeyParameters)PublicKeyFactory.CreateKey(Convert.FromBase64String(publicKey));