资源简介
网上搜到的代码修改了下。以前主要用于解密C#中用DES加密的带IV的CBC加密模式的代码。类化了,只是类名不正确。

代码片段和文件信息
// DesCrytoXP.cpp : Defines the entry point for the console application.
//
#include “stdafx.h“
#include “stdio.h“
#include “XPDecrypto.h“
#include “string.h“
int main(int argc char* argv[])
{
printf(“加解密测试程序:3Des,CBC模式PAD_ISO_1主要是借鉴他人程序。自己研究不多。\r\n“);
char* enword = “测试程序,如有问题请call me: rocross@yeah.net“;//加密字符串
char key[] = {“1aa“};//加密key
char iv[]={“12345123“};//向量
//XPDecrypto::XPPad(PAD_ISO_1enwordstrlen(enword)enword0x0);
char* buffer = new char[200];
memset(buffer0x0200);
char* bufferout = new char[200];
memset(bufferout0x0200);
int PadMode = PAD_ISO_1;
XPDecrypto::XP3Des(ENCRYPTECBenwordstrlen(enword)keystrlen(key)buffer200ivPadMode);
printf(“Encrypto:%s\r\n“buffer);
XPDecrypto::XP3Des(DECRYPTECBbufferstrlen(buffer)keystrlen(key)bufferout200ivPadMode);
printf(“Beforecr:%s|length:%d\r\n“enwordstrlen(enword));
printf(“Decrypto:%s\r\n“bufferout);
return 0;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 184381 2010-06-22 14:34 DesCrytoXP\Debug\DesCrytoXP.exe
文件 1003 2010-06-22 14:34 DesCrytoXP\DesCrytoXP.cpp
文件 4716 2010-06-18 10:20 DesCrytoXP\DesCrytoXP.dsp
文件 543 2010-06-18 10:09 DesCrytoXP\DesCrytoXP.dsw
文件 50176 2010-06-22 14:34 DesCrytoXP\DesCrytoXP.ncb
文件 54784 2010-06-22 14:34 DesCrytoXP\DesCrytoXP.opt
文件 1354 2010-06-22 14:34 DesCrytoXP\DesCrytoXP.plg
文件 1232 2010-06-18 10:09 DesCrytoXP\ReadMe.txt
文件 297 2010-06-18 10:09 DesCrytoXP\StdAfx.cpp
文件 667 2010-06-18 10:09 DesCrytoXP\StdAfx.h
文件 18432 2010-06-22 14:33 DesCrytoXP\XPDecrypto.cpp
文件 2290 2010-06-22 14:13 DesCrytoXP\XPDecrypto.h
目录 0 2010-06-22 14:34 DesCrytoXP\Debug
目录 0 2010-06-22 14:34 DesCrytoXP
----------- --------- ---------- ----- ----
319875 14
相关资源
- C#有界面局域网DES UDP加密通讯程序
- .NET C# Custom Form Designer (附源碼)
- polyvav2D-1.5.2_BehaviorDesigner.unitypackage
- c#开发的WebFormDesigner
- AVI,SVI文件互转,Des 加解密
- 基于RSA和DES加密以及哈希校验的点对
- MaterialDesignInDome.zip
- C#使用pem格式的密钥对文件来做RSA加解
- 学籍管理系统(毕业设计)230396
- Programming C# 8.0_ Build Cloud Web and Deskto
- COdeSoft打印
- WPF源码 DiagramDesigner 图解设计
- libemgucv-windesktop-3.3.0.2824.exe
- Autodesk Forge平台转换模型 模型资源 离
- CubeAttitudeShow.zip
- 游戏设计、原型与开发 - 基于Unity与
- Adaptive Code: Agile coding with design patter
- C# SOCKET加密文件消息传输通信
- C# DESC 加密解密
- C# SHA1withRsa签名函数,加解密 封装类
- RSA文件加解密C#源代码
- C#加密(DES)
- IBatisNet的Codesmith模板
- pb调用c#编写的动态库SM3/SM4加解密
- C#实现十六进制AES的加解密字节数组工
- C#实现DES加解密完整类源码
- C# SHA1withRsa签名函数,加解密
- C#编写DES加解密 图形界面化
- Emit常用Opcode指令使用方法
- 字符串加密与解密C#源码
评论
共有 条评论