自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(3)
  • 资源 (4)
  • 收藏
  • 关注

原创 PYTHON RSA 使用私钥加密公钥解密独家解决方案

PYTHON解决RSA私钥加密公钥解密的方法。

2021-12-01 11:58:39 4621 9

原创 PHP接收Base64报文中“+”加号处理方法

public static function Post($PostArry,$Req_Url){ try { $postData = $PostArry; $postDataString = http_build_query($postData);//格式化参数 $curl = curl_init(); // 启动一个CURL会话 curl_setopt($curl, CURLOPT_URL, ...

2020-10-30 16:47:01 888

原创 XML多层复杂结构转Dictionary<String,Object>类型

using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Xml;using System.Web.Script.Serialization;using System.Collections;namespace XMLhead{

2017-03-23 09:48:32 1311

PYTHON Crypto库支持RSA,私钥加密公钥解密(修改版)

PYTHON Crypto库支持RSA,私钥加密公钥解密, 文件名:RSA.PY  路径:Crypto\PublicKey\RSA.py 将此Crypto库中以上文件替换。 关于加解密方法看我的文章有写

2021-12-01

C#-DES_SAME_JAVA-DES.zip

本代码是C#方法,通过开源C#BouncyCastle加密组件进行DES加解密。和JAVA DES加解密互通。JAVA方法如下: public static String desEncrypt(String source, String desKey) throws Exception { try { // 从原始密匙数据创建DESKeySpec对象 SecretKeyFactory keyFactory = SecretKeyFactory.getInstance("DES"); SecretKey securekey = keyFactory.generateSecret(new DESKeySpec(desKey.getBytes())); // Cipher对象实际完成加密操作 Cipher cipher = Cipher.getInstance("DES"); // 用密匙初始化Cipher对象 cipher.init(Cipher.ENCRYPT_MODE, securekey); // 现在,获取数据并加密 byte[] destBytes = cipher.doFinal(source.getBytes()); StringBuilder hexRetSB = new StringBuilder(); for (byte b : destBytes) { String hexString = Integer.toHexString(0x00ff & b); hexRetSB.append(hexString.length() == 1 ? 0 : "").append(hexString); } return hexRetSB.toString(); } catch (Exception e) { throw new Exception("DES加密发生错误", e); } } public static String desDecrypt(String source, String desKey) throws Exception { // 解密数据 byte[] sourceBytes = new byte[source.length() / 2]; for (int i = 0; i < sourceBytes.length; i++) { sourceBytes[i] = (byte) Integer.parseInt(source.substring(i * 2, i * 2 + 2), 16); } try { SecretKeyFactory keyFactory = SecretKeyFactory.getInstance("DES"); SecretKey securekey = keyFactory.generateSecret(new DESKeySpec(desKey.getBytes())); Cipher cipher = Cipher.getInstance("DES"); // 用密匙初始化Cipher对象 cipher.init(Cipher.DECRYPT_MODE, securekey); // 现在,获取数据并解密 byte[] destBytes = cipher.doFinal(sourceBytes); return new String(destBytes); } catch (Exception e) { throw new Exception("DES解密发生错误", e); } }

2020-05-20

ar28-11路由升级文件 R0311p19版本

最新版华为AR28_AR46-CMW340-R0311P19升级文件带QOS限速功能!

2012-12-07

IBM_BIOS详细设置.doc

当开启T-series时,屏幕下方出现"Press F1 for IBM BIOS Setup Utility"时,同时按下F1,将会进入Bios设置界面。 再Bios设置界面中,Config、Date/time、Password、Startup、Restart分别为设置项,除了这些项目外,其他所显示的为本机的系统信息。首先介绍本机的系统信息。Bios Version 1.04c(1AET47WW) 这个是机身BIOS版本

2012-04-10

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除