Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - 加解密
Search - 加解密 - List
这个类实现了DES算法,如果你的数据块data的大小sizeof(data)是8的倍数 的话,可以使用函数DES::encrypt(key,data,sizeof(data)/8)来进行加密, 用DES::decrypt(key,data,sizeof(data)/8)来进行解密。 如果数据块的大小是随意的,那么可以使用函数DES::yencrypt()和 DES::ydecrypt()来进行加解密。 这个模块的面向对象的设计不是很好,与其说是一个类,不如说是一个模块 的函数集合。-This class implements the DES algorithm, data if your data block size of sizeof (data) is a multiple of 8, you can use the function DES:: encrypt (key, data, sizeof (data)/8) to be encrypted, using DES :: decrypt (key, data, sizeof (data)/8) to be decrypted. If the data block size is arbitrary, then you can use the function DES:: yencrypt () and DES:: ydecrypt () to carry out encryption and decryption. This module is object-oriented design is not good, not so much a class as it is a function of a module set.
Date : 2025-12-15 Size : 4kb User : spencer
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.