RSA加長分段解密算法,界面操作。算法步驟如下:1. 讀取私鑰d和n,作解密之用。 2. 從EncText中讀取一大段密文,再把該大段密文分成若干小段密文。 3. 使用d和n把所有小段密文進行解密成對應(yīng)的小段密文sectByte[],再合成一大段明文字節(jié)數(shù)組Byte[],并轉(zhuǎn)化成大段明文添加到DecText。 4. 讀取下一大段密文,若密文為空,完成解密;否則轉(zhuǎn)2
上傳時間: 2015-03-25
上傳用戶:稀世之寶039
A collection of math routines including 8-bit, 16-bit, 32-bit signed and unsigned addition, subtraction, multiplication, and division. Very nice code library with heavy in-line documentation! Been looking for multi-Byte divide? Here it is.
標(biāo)簽: bit collection including addition
上傳時間: 2015-05-17
上傳用戶:cursor
51串行令牌格式 a51編譯 Read data from serial port and write into buffer DPTR pointed in XRAM if a data frame is received and calculate the check sum if a information frame is received return control Byte only
標(biāo)簽: data pointed buffer serial
上傳時間: 2015-06-14
上傳用戶:極客
用C51實現(xiàn)的拼音輸入法,這是改寫的網(wǎng)友 embuffalo、獨步上載在www.21ic.com自由發(fā)布區(qū)的由張凱原作的51上的拼音輸入法程序。 原作使用了一個二維數(shù)組用以查表,我認(rèn)為這樣比較的浪費空間,而且每個字表的索引地址要手工輸入,效率不高。所以我用結(jié)構(gòu)體將其改寫了一下。就是大家現(xiàn)在看到的這個。 因為代碼比較的大,共有6,000多漢字,這樣就得要12,000 Byte來存放GB內(nèi)碼,所以也是沒辦法的 :-( 編譯結(jié)果約為3000h,因為大部分是索引表,代碼優(yōu)化幾乎無效。 在Keil C里仿真芯片選用的是華邦的W77E58,它有32k ROM, 256B on-chip RAM, 1K on-chip SRAM (用DPTR1指針尋址,相當(dāng)于有1K的片上xdata)。條件有限,沒有上片試驗,仿真而已。 打算將其移植到AVR上,但CodeAVRC與IAR EC++在結(jié)構(gòu)體、指針的定義使用上似乎與C51不太一樣,現(xiàn)在還未搞定。還希望在這方面有經(jīng)驗的網(wǎng)友能給予指導(dǎo)。
標(biāo)簽: embuffalo C51 com www
上傳時間: 2014-01-26
上傳用戶:semi1981
可以將以bit為單位進行處理的算法擴展到8位,即以Byte為單位進行處理。由于有8個bit,所以有2^8種選擇。這樣明顯會使運行時 間大為減少,速度明顯更快,但是也有它的缺點,即,占用資源太大,所以綜合考慮速度和 資源兩點,采用半字節(jié)查表法。即以半 Byte為單位進行處理。由于有4個bit,所以有2^4種選擇。
上傳時間: 2014-12-20
上傳用戶:小寶愛考拉
This example shows how to transmit and receive packets with packet length up to 255 Bytes. The status Byte is polled every 200 us in a timer1 int.
標(biāo)簽: transmit example receive packets
上傳時間: 2014-01-26
上傳用戶:zhuimenghuadie
This a two node test, requires a Coordinator and an RFD. The coordinator and node simply ping-pong a packet back and forth, and print out the RSSI Byte. The RFD waits before bouncing it back, while the coordinator responds immediately.
標(biāo)簽: node Coordinator coordinator and
上傳時間: 2013-12-24
上傳用戶:ardager
This unit uses an array of Bytes to represent a LARGE number. The number is binairy-stored in the array, with the Least Significant Byte (LSB) first and the Most Significant Byte (MSB) last, like all Intel-integer types.
標(biāo)簽: number binairy-stored represent LARGE
上傳時間: 2015-10-08
上傳用戶:xieguodong1234
What Does the code DO? Sometimes we may desire to hide our file contents from others.One of the possible way is encrypting these files.Here a simple encryption technique is used(In VB - The same technique can be implemented in "c" also.) Program flow Explained * Open the File to be encrypted for Binary Access Read(Say Source File) * Open a temparory file where encrypted data is stored for Binary Access Write(Say Destination File) * Loop through the Source File Byte by Byte * For each Byte read from the file, Complement the data. (Using Not operator (in C we have to use "~" operator) * Write Complemented Data to Destination File * Delete the Source File * Rename Destination file as Source File(Now Encryption is over)
標(biāo)簽: Sometimes the contents desire
上傳時間: 2013-12-25
上傳用戶:playboys0
#include "pch.h" #include "base64.h" NAMESPACE_BEGIN(CryptoPP) static const int MAX_LINE_LENGTH = 72 static const Byte vec[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" static const Byte padding = = Base64Encoder::Base64Encoder(BufferedTransformation *outQueue, bool insertLineBreak) : insertLineBreak(insertLineBreak), Filter(outQueue) { inBufSize=0
標(biāo)簽: include NAMESPACE_BEGIN MAX_LINE_LENG CryptoPP
上傳時間: 2015-12-07
上傳用戶:古谷仁美
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1