资源简介
tfn2k.rar

代码片段和文件信息
/* AES CryptAPI - implementation of AES functions for *
* character buffer / binary / text encryption. *
* Written Nov 99 by Mixter */
#include “aes.h“
u4byte *
aes_setkey (char *password)
{
u4byte keylen = strlen (password) * 8;
u4byte key[strlen (password) / 4];
memcpy (key password strlen (password));
return (set_key (key keylen));
}
u1byte *
encode (u1byte * inbuf int len)
{
u4byte i in_blk[4] out_blk[4];
if (len % 16 != 0)
len += 16 - (len % 16);
for (i = 0; i < len - 15; i += 16)
{
memcpy (in_blk inbuf + i 16);
aes_encrypt (in_blk out_blk);
memcpy (inbuf + i out_blk 16);
}
return inbuf;
}
u1byte *
decode (u1byte * inbuf int len)
{
u4byte i in_blk[4] out_blk[4];
if (len % 16 != 0)
len += 16 - (len % 16);
for (i = 0; i < len - 15; i += 16)
{
memcpy (in_blk inbuf + i 16);
decrypt (in_blk out_blk);
memcpy (inbuf + i out_blk 16);
}
return inbuf;
}
u1byte *
encode64 (u1byte * inbuf u1byte * outbuf int len)
{
if (!len)
return inbuf;
encode (inbuf len);
base64_in (inbuf (char *) outbuf len + 16);
return outbuf;
}
u1byte *
decode64 (u1byte * inbuf u1byte * outbuf int len)
{
if (!len)
return inbuf;
base64_out ((char *) inbuf outbuf len);
decode (outbuf len);
return outbuf;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 112 1999-12-18 07:00 tfn2k\Makefile
文件 11617 1999-12-19 04:01 tfn2k\README
文件 1391 1999-12-18 07:00 tfn2k\src\aes.c
文件 5504 1999-12-18 07:00 tfn2k\src\aes.h
文件 2679 1999-12-18 07:00 tfn2k\src\ba
文件 16805 1999-12-18 07:00 tfn2k\src\cast.c
文件 1673 1999-12-18 07:00 tfn2k\src\config.h
文件 1043 1999-12-18 07:00 tfn2k\src\disc.c
文件 5636 1999-12-18 07:00 tfn2k\src\flood.c
文件 1790 1999-12-18 07:00 tfn2k\src\ip.c
文件 2388 1999-12-18 07:00 tfn2k\src\ip.h
文件 780 1999-12-18 07:00 tfn2k\src\Makefile
文件 5165 1999-12-18 07:00 tfn2k\src\mkpass.c
文件 7015 1999-12-18 07:00 tfn2k\src\process.c
文件 5794 1999-12-18 07:00 tfn2k\src\td.c
文件 7757 1999-12-18 07:00 tfn2k\src\tfn.c
文件 4751 1999-12-18 07:00 tfn2k\src\tribe.c
文件 2039 1999-12-18 07:00 tfn2k\src\tribe.h
文件 12481 2008-12-19 14:32 Readme.txt
目录 0 2008-12-19 14:34 tfn2k\src
目录 0 2008-12-19 14:34 tfn2k
----------- --------- ---------- ----- ----
96420 21
- 上一篇:基于KDtree的三维点云算法
- 下一篇:注册机获取CPU信息并使用MD5多重加密
相关资源
- PID_AutoTune_v0.rar
- vspd7.2.308.zip
- 价值2k的H漫画小说系统
- Pythonamp;课堂amp;笔记(高淇amp;400;集第
- ddos压力测试工具99657
- UML建模大全
- 开源1A锂电池充电板TP4056原理图+PCB
- m1卡 ic卡可选择扇区初始化加密软件
- TSCC.exe
- FTP课程设计(服务端+客户端)
- 计算机图形学 边填充算法实现代码
- 电力系统潮流计算程序集合
- oracle数据迁移项目实施方案
- Web Api 通过文件流 文件到本地
- Visio图标-最新最全的网络通信图标库
- Spire API文档
- OpenGL参考手册
- Python中Numpy库最新教程
- SPD博士V5.3.exe
- 直流无刷电机方波驱动 stm32 例程代码
- layui后台管理模板
- 仿知乎界面小程序源代码
- 云平台-阿里云详细介绍
- photoshop经典1000例
- scratch垃圾分类源码(最终版本).sb
- IAR ARM 7.8破解
- TI CCS V5.4 安装步骤及破解文件
- 松下plc FP-XH的驱动
- 局域网硬件信息收集工具
- 加快Windows XP操作系统开机速度
评论
共有 条评论