Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - INT 1
Search - INT 1 - List
C++ Base64编码/解码源代码 inline int Base64Encode(char * base64code, const char * src, int src_len = 0) inline int Base64Decode(char * buf, const char * base64code, int src_len = 0) 以上两个函数内联定义在base64.h中,使用时include \"base64.h\" 即可,编码后的长度一般比原文多占1/3的存储空间,为了效率,程序并没有检查目标存储区是否溢出,请保证有足够的存储空间。 -C Base64 encoding / decoding source code inline int Base64Encode (char * base64code, const char * src, int src_len = 0) inline int Base64Decode (char * buf, base64code const char *, int src_len = 0) over two letters few within the definition in conjunction base64.h, when used include "base64.h" can, coding the original length generally occupy more than 1 / 3 of storage space, in order to efficiency, procedures and did not check whether the target storage areas overflow, please ensure that there is sufficient storage space.
Date : 2008-10-13 Size : 5.45kb User : 王晓名

DL : 0
在程序中由playfair(char *s,int length) 的实现加密和解密;解密原理与加密类似,只是加密过程的逆过程,它基于密文,采用同行取左边,同列取下边,其余取交叉的相反原理;在程序中用FLAG标识区别,当其值为1时,为加密过程;值为0时,为解密过程。-in the proceedings by PLAYFAIR (char * s, int length) the realization of encryption and decryption; encryption and decryption principle similar encryption process is the inverse process. It is based on the secret-using counterparts from the left, with the top candidate out from the rest of the cross from the opposite principle; the identification procedures used FLAG distinction, when its value to 1:00 for encryption process; the value of 0, for decryption.
Date : 2008-10-13 Size : 6.57kb User : flying840310

使用的是API编程,可格式化、校验和读写特殊扇区。可用作Windows下的磁盘加密。本函数还有以下两个缺点以待改进: 1.本函数还只能读能读 A: 和 B:,即只能对软盘操作 2.不能改变磁盘扇区大小,只能是标准的 512 个字节。 参数说明: command 操作: 0 重置磁盘 2 读扇区 3 写扇区 4 校验磁道 5 格式化磁道 8 得到设备参数 (int 1EH) drive 驱动器 A:=0 B:=1 head 磁头号,范围 0 - 1 track 磁道号,范围 0 - 84 ( 80 - 84 为特殊磁道,通常用来加密 ) sector 扇区号,范围 0 - 255 ( 19 - 255 为非标准扇区编号,通常用来加密) nsectors 每次读或写的扇区数,不能超出每磁道的最大扇区数 buffer 数据写入或读出的缓冲区,大小为 512 个字节 返回值 ( 同 Int 13H ): 0x0 成功 0x1 无效的命令 0x3 磁盘被写保护 0x4 扇区没有找到 0xa 发现坏扇区 0x80 磁盘没有准备好-using the API programming, formatting and testing literacy and special sectors. Windows can be used as a disk encryption. This function has the following two shortcomings to be improved : 1. This function can only be read, read A : and B : that only the right to operate two floppy disks. No change disk sector size, the standard is only 512 bytes. Parameter Description : command operations : 0 Reading 2 replacement disk write Sector Sector 3 4 5 checksum track to be formatted track eight equipment parameters (int 1EH) drive drive A : = 0 B : = 1 head head, range 0-1 track track, the range of 0-84 (80-84 for special track, normally used for encryption) sector sector, the scope of 0-255 (19-255 for a non-standard sector numbers, commonly used encryption) nsectors each read or write in the num
Date : 2008-10-13 Size : 37.95kb User : 李小

多数程序设计语言处理整数的能力是有限的,如C语言中,int类型数据范围是-32767----32767。实际问题的处理过程中往往涉及大整数的运算,如RSA加密算法要求至少64bit的整数,本程序是设计算法实现大整数的加减运算。-majority programming language processing is integral to the limited capacity, such as C language, int data type is the scope -32767 ---- 32767. Practical problems of the treatment process often involves large integer arithmetic, such as the RSA encryption algorithm requires at least 64-bit integers, the procedure is designed algorithm large integer addition and subtraction operations.
Date : 2008-10-13 Size : 842byte User : 王承陶

使用的是API编程,可格式化、校验和读写特殊扇区。可用作Windows下的磁盘加密。本函数还有以下两个缺点以待改进: 1.本函数还只能读能读 A: 和 B:,即只能对软盘操作 2.不能改变磁盘扇区大小,只能是标准的 512 个字节。 参数说明: command 操作: 0 重置磁盘 2 读扇区 3 写扇区 4 校验磁道 5 格式化磁道 8 得到设备参数 (int 1EH) drive 驱动器 A:=0 B:=1 head 磁头号,范围 0 - 1 track 磁道号,范围 0 - 84 ( 80 - 84 为特殊磁道,通常用来加密 ) sector 扇区号,范围 0 - 255 ( 19 - 255 为非标准扇区编号,通常用来加密) nsectors 每次读或写的扇区数,不能超出每磁道的最大扇区数 buffer 数据写入或读出的缓冲区,大小为 512 个字节 返回值 ( 同 Int 13H ): 0x0 成功 0x1 无效的命令 0x3 磁盘被写保护 0x4 扇区没有找到 0xa 发现坏扇区 0x80 磁盘没有准备好-using the API programming, formatting and testing literacy and special sectors. Windows can be used as a disk encryption. This function has the following two shortcomings to be improved : 1. This function can only be read, read A : and B : that only the right to operate two floppy disks. No change disk sector size, the standard is only 512 bytes. Parameter Description : command operations : 0 Reading 2 replacement disk write Sector Sector 3 4 5 checksum track to be formatted track eight equipment parameters (int 1EH) drive drive A : = 0 B : = 1 head head, range 0-1 track track, the range of 0-84 (80-84 for special track, normally used for encryption) sector sector, the scope of 0-255 (19-255 for a non-standard sector numbers, commonly used encryption) nsectors each read or write in the num
Date : 2026-01-07 Size : 38kb User : 李小

C++ Base64编码/解码源代码 inline int Base64Encode(char * base64code, const char * src, int src_len = 0) inline int Base64Decode(char * buf, const char * base64code, int src_len = 0) 以上两个函数内联定义在base64.h中,使用时include "base64.h" 即可,编码后的长度一般比原文多占1/3的存储空间,为了效率,程序并没有检查目标存储区是否溢出,请保证有足够的存储空间。 -C Base64 encoding/decoding source code inline int Base64Encode (char* base64code, const char* src, int src_len = 0) inline int Base64Decode (char* buf, base64code const char*, int src_len = 0) over two letters few within the definition in conjunction base64.h, when used include "base64.h" can, coding the original length generally occupy more than 1/3 of storage space, in order to efficiency, procedures and did not check whether the target storage areas overflow, please ensure that there is sufficient storage space.
Date : 2026-01-07 Size : 5kb User : 王晓名

C# BigInteger class. BigInteger.cs is a csharp program. It is the BIgInteger class. It has methods: abs() , FermatLittleTest(int confidence) ,gcd(BigInteger bi) , genCoPrime(int bits, Random rand) , genPseudoPrime(int bits, int confidence, Random rand) , genRandomBits(int bits, Random rand) , isProbablePrime(int confidence) , isProbablePrime() , Jacobi(BigInteger a, BigInteger b) , LucasSequence(BigInteger P, BigInteger Q, BigInteger k, BigInteger n) ,max(BigInteger bi) , min(BigInteger bi) , modInverse(BigInteger modulus) , RabinMillerTest(int confidence) , -C# BigInteger class. BigInteger.cs is a cs harp program. It is the BIgInteger class. It has methods : abs (), FermatLittleTest (int confidence). gcd (BigInteger bi), genCoPrime (int bits, Random rand), genPseudoPrime (int bits, int confidence, Random rand). genRandomBits (int bits, Random rand). isProbablePrime (int confidence). isProbablePrime (), Jacobi (BigInteger a, BigInteger b), LucasSequence (BigInteger P, BigInteger Q, BigInteger k, BigInteger n), max (BigInteger bi), min (BigInteger bi). modInverse (BigInteger modulus). RabinMillerTest (int confidence),
Date : 2026-01-07 Size : 35kb User : jason..

在图像中加入某个分数值(int),然后检测这个分数,要求在图像受到攻击时能有效(100%)提取这个值-In the image by adding a Score value (int), then detection of the scores, the requirements in the image can be attacked effectively (100) extraction of this value
Date : 2026-01-07 Size : 3kb User : 王少飞

第三方空间//--- --- --- --- --- --- --- #include <vcl.h> #pragma hdrstop USERES("WinSkinC5.res") USEPACKAGE("vcl50.bpi") USEUNIT("WinSkinReg.pas") USERES("WinSkinReg.dcr") USEPACKAGE("vclx50.bpi") //--------------------------------------------------------------------------- #pragma package(smart_init) //--------------------------------------------------------------------------- // Package source. //--------------------------------------------------------------------------- #pragma argsused int WINAPI DllEntryPoint(HINSTANCE hinst, unsigned long reason, void*) { return 1 } //--------------------------------------------------------------------------- -Third-party space//-------------# Include
Date : 2026-01-07 Size : 443kb User :

DL : 0
单机版多对象进行密钥交换,内部提供了关于超过int范围的数值进行取模运算的反法。-Stand-alone version of multi-object for key exchange, internal information on the scope of more than int values modulus operator s anti-law.
Date : 2026-01-07 Size : 132kb User : 张薇

Anti-SoftICE... ..Anti-SoftICE示例 ├──BackDoor...........SoftICE后门指令 ├──Service............判断NTICE服务是否运行 ├──UEF................利用UnhandledExceptionFilter检测 └──INT41..............INT 41子类型 -Anti-SoftICE ... .. Anti-SoftICE example ├ ─ ─ BackDoor ........... SoftICE backdoor instructions ├ ─ ─ Service ............ to determine whether the services NTICE run ├ ─ ─ UEF ................ use UnhandledExceptionFilter detection └ ─ ─ INT41 .............. INT 41 sub-types
Date : 2026-01-07 Size : 659kb User : 王刚

et框架由于拥有CLR提供的丰富库支持,只需很少的代码即可实现先前使用C等旧式语言很难实现的加密算法。本类实现一些常用机密算法,供参考。其中MD5算法返回Int的ToString字串。返回数字字母型结果的算法参见之前Blog文章-* This program is free software you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation either version 2, or (at your option) any * later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program if not, write to the Free Software Foundation, * Inc., 59 Temple Place- Suite 330, Boston, MA 02111-1307, USA.
Date : 2026-01-07 Size : 1kb User : xsw

DL : 0
用SHA算法实现对任意文件的hash摘要,并且把hash摘要值(至少为160bit)存入另一个文件,形如: hash inputfile hashvaluefile 说明:SHA算法的实现至少为160bit,或者可以选择256,384或者512的,可以查阅相关资料,按照标准来实现(hash的算法是否正确,可以和网上的标准算法对比,用相同的输入看是否能够得到相同的输出)控制台编程: int main(int argc, char *argv[ ]) -Programme for SHA-1, include the project and .cpp&.h files.Absolutely available
Date : 2026-01-07 Size : 4kb User : Heyyou

DL : 0
在网络上销售的商业管理系统,一般都要注册才能使用。本实例将使用INT文件对软件进行用户信息注册。-On the network marketing business management systems, generally have to register to use. INT files in this instance will use the software user information registration.
Date : 2026-01-07 Size : 15kb User : wang

DL : 0
AES算法,实现对文件加密。包含密码学课程报告 class CRijndael { private: int Nk,Nr,round long Total_Round,Cur_Round char *SourceFileName,*TargetFileName CString source,*target,save CFile Source,Target byte (* State)[4],*w[4],*key[4] public: CString ErrorMessage CRijndael() virtual ~CRijndael() bool EncrypFile() bool DecrypFile() CString DecrypStr() CString EncrypStr() bool SetFileName(CString SFileName,CString TFileName) bool SetString(CString sour,CString &targ) bool SetVariable(int k,int r,CString skey) int GetCurPos() private: void SubBytes() void ShiftRows() void MixColumns() byte Multi(byte a,byte b) void AddRoundKey() void KeyExpansion() void InvShiftRows() void InvSubBytes() void InvMixColumns() void Encryption() void Decryption() } -AES algorithm to realize the files are encrypted. Course report contains the password 。 class CRijndael {private: int Nk, Nr, round long Total_Round, Cur_Round char* SourceFileName,* TargetFileName CString source,* target, save CFile Source, Target byte (* State) [4] ,* w [4],* key [4] public: CString ErrorMessage CRijndael () virtual ~ CRijndael () bool EncrypFile () bool DecrypFile () CString DecrypStr () CString EncrypStr () bool SetFileName (CString SFileName, CString TFileName) bool SetString (CString sour, CString & targ) bool SetVariable (int k, int r, CString skey) int GetCurPos () private: void SubBytes () void ShiftRows () void MixColumns () byte Multi (byte a, byte b) void AddRoundKey () void KeyExpansion () void InvShiftRows () void InvSubBytes () void InvMixColumns () void Encryption () void Decryption () }
Date : 2026-01-07 Size : 280kb User : fff

DES cbc和ecb模式的实现C++洒地方-int ByteToBit(ElemType ch,ElemType bit[8]) int BitToByte(ElemType bit[8],ElemType*ch) int Char8ToBit64(ElemType ch[8],ElemType bit[64]) int Bit64ToChar8(ElemType bit[64],ElemType ch[8])
Date : 2026-01-07 Size : 47kb User : chafer2011

用的C++语言。因为前阵子需要大批量修改不同文件夹下同一个配置文件里的某一个位置信息(我要修改的文件:PlatForm),因为配置文件加密成十六进制,而且不知道结构体,根据字节对齐,我模糊判断要修改位置为INT类型,所以只能从内存直接拷贝修改。包括遍历文件夹寻找文件和内存拷贝修改操作,如果要批量修改文件名字或者之类的原理是一样的不打算做其他修改了,仅供参考。-With the C++ language. A while back, need to change because of large quantities of a different folder, the same below a certain configuration file location information (I want to modify the file: PlatForm), because the configuration file encryption to hex, but do not know the structure, according to the byte alignment, I judge to modify the position of fuzzy INT type, we can only modify the copy directly from memory. Including through the folder for files and modify memory copy operation, if you want to batch change file name or the same kind of principle is not going to do other changes, and for reference only.
Date : 2026-01-07 Size : 944kb User :

DL : 0
rsa 实现代码,运用大数算法#include "afx.h" #include "Integer.h" #include <string> #include <iostream> using namespace std //构造大数对象并初始化为零 CInteger::CInteger() { m_nLength=1 for(int i=0 i<BI_MAXLEN i++)m_ulValue[i]=0 } //解构大数对象 CInteger::~CInteger() { } /*大数比较 调用方式:N.Cmp(A) 返回值:若N<A返回-1;若N=A返回0;若N>A返回1 */ int CInteger::Cmp(CInteger& A)-#include "afx.h" #include "Integer.h" #include <string> #include <iostream> using namespace std //构造大数对象并初始化为零 CInteger::CInteger() { m_nLength=1 for(int i=0 i<BI_MAXLEN i++)m_ulValue[i]=0 } //解构大数对象 CInteger::~CInteger() { } /*大数比较 调用方式:N.Cmp(A) 返回值:若N<A返回-1;若N=A返回0;若N>A返回1 */ int CInteger::Cmp(CInteger& A)
Date : 2026-01-07 Size : 2.96mb User : ploto

DL : 0
曾经在某公司做过的代码,虽然代码并不美观,但却是稳定的用在产品中的,经过了大量测试。 功能: 解密蓝光磁碟(蓝光碟放在专用的蓝光光驱中,usb接口连接电脑) 提供了如下接口: size_t fread_xl(char* key, void *buffer, size_t size, size_t count, int fh ,int vertpye ) 来直接读取加密碟,内部实现了透明解密,函数接口极力模仿fread函数。 另配合GetKey 函数来获取密钥。具体使用方法见测试函数test_decrypt_file_3,其中测试了N多蓝光加密磁碟(解密后写成明文视频) 核心解密代码是汇编实现,并最终以C接口形式封装给外部使用,就是上边提到的两个函数 注意:编译需要另外下载安装masm32 (http://www.movsd.com/),因为汇编代码需要其中提供的汇编形式的头文件-Ever done in a company code, although the code is not pretty, but it is stable products after extensive testing. Features: decrypt Blu-ray disk (Blu-ray on the dedicated Blu-ray drive, usb interface connected to the computer) provides the following interface: size_t fread_xl (char* key, void* buffer, size_t size, size_t count, int fh, int vertpye) to directly read the encrypted disc, internal transparent decryption function interface to emulate fread function. Another tie GetKey function to get the key. Specific use, see the test function test_decrypt_file_3, which tested more than N Blu-ray encryption disk (the decrypted written expressly video) core decryption code compilation to achieve, and the final package to the external form of C interface, is on top of the two functions mentioned Note: Compile require additional download and install masm32 (http://www.movsd.com/), because the assembly code requires assembly which provides in the form of header files
Date : 2026-01-07 Size : 812kb User : f

实现int类型的rsa加解密,重在思想,有人告诉我2048bit怎么编?(rsa algorithm description)
Date : 2026-01-07 Size : 209kb User : dreamstick
« 12 »
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.