CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - encryption and decryption algorithm
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - encryption and decryption algorithm - List
[
source in ebook
]
一个RSA的类的源代码
DL : 1
一个RSA源代码,对各种字符串进行加密解密,包含汉字,数字-a source of all kinds of strings encryption and decryption, including Chinese characters, figures
Date
: 2025-12-30
Size
: 2.3mb
User
:
[
source in ebook
]
3d4c8def245a
DL : 0
算法流程 1.将要处理的二进制串进行IP置换 2.将密钥进行PC1置换(64位转为56位), 3.进行16轮操作,对于第i轮操作: 1)将上一次得到的PC1密钥(级除去第一次外,其他的都经过移位处理)的结果左右部分(各28位)分别循环左移1位或2位,然后将移位后的密钥进行PC2[i]置换. 2)将处理串均等分为左右两串Li,Ri(各32位),然后将右串Ri通过E盒拓展为新的右串R (48位),R 与上一步得到的PC2[i]子密钥进行异或操作,结果通过S盒输出(48为转为32位),然后通过P盒直接置换,再与Li异或. 3)将Ri赋给作出Li,R 赋值给Ri. 4)合并处理串StrText=Li+Ri. 4.将最新的处理串进行IP_1置换,置换结果即为所求的加密串或解密串 加密解密的区别 在每轮操作中,加密使用的PC2密钥顺序为0~15,解密使用的PC2密钥顺序为15~0. 更多0-The algorithm flow would have to deal with the binary string replacement IP key PC1 replacement (64 into 56), 3. Conducted 16 operations, for the i-th round operation: 1) the last PC1 key (removal of the first, the other after shift processing), about (28), respectively, rotate left one or two, then the shift key PC2 [i] replacement. 2) will handle the string equalization is divided into right and left bunches Li, Ri (32), and then the right string Ri develop new right string R ' (48-bit), R' is obtained in the previous step through the E box PC2 [i] subkey XOR operation results through the S-box output (48 into 32), and then through the P box direct replacement, with Li the XOR. 3) Ri is assigned to make Li, R ' assignment to Ri. 4) the combined processing string StrText = Li+Ri, 4. latest processing string for IP_1 replacement, replacement result is encrypted string or ask the the decrypted string encryption and decryption difference in each round operation, encryption use
Date
: 2025-12-30
Size
: 2kb
User
:
温维山
[
source in ebook
]
SM4
DL : 1
实现SM4算法,迭代加密与解密,并且对加密10000000次和解密10000000次进行了时间测试-The realization of SM4 algorithm, iterative encryption and decryption, the encryption and decryption and 10000000 times 10000000 times for the test of time
Date
: 2025-12-30
Size
: 503kb
User
:
杜 水人
[
source in ebook
]
DES
DL : 0
使用DES算法实现对文本的加密解密,显示加密解密文本和密码-Using DES algorithm to achieve the encryption and decryption of the text, display encryption and decryption text and password
Date
: 2025-12-30
Size
: 189kb
User
:
罗毅
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.