hrjy преди 2 години
родител
ревизия
7636c033d0
променени са 1 файла, в които са добавени 5 реда и са изтрити 2 реда
  1. 5 2
      crmeb/services/GmService.php

+ 5 - 2
crmeb/services/GmService.php

@@ -73,11 +73,14 @@ class GmService
 
 //        echo self::string2hex(base64_decode(self::PUBLIC_KEY));
 
-        dump(self::string2hex(base64_decode(self::PRIVATE_KEY)));
+        $p_hex = self::string2hex(base64_decode(self::PRIVATE_KEY));
+        dump($p_hex);
+        php_HextoAsc(self::string2hex(base64_decode($p_hex)), $k1);
+        dump(compact('k1'));
         exit;
         //初始化转换密钥信息
         php_HextoAsc(self::string2hex(base64_decode(self::PRIVATE_KEY)), $k1);
-        halt(compact('k1'));
+
 //        php_HextoAsc(self::string2hex(base64_decode(self::PUBLIC_KEY)), $k2);
 //        halt(compact('k1', 'k2'));
 //        php_HextoAsc(self::string2hex(base64_decode(self::CGB_PUBLIC_KEY)), $gf_k);