RSA加長分段解密算法,界面操作。算法步驟如下:1. 讀取私鑰d和n,作解密之用。 2. 從EncText中讀取一大段密文,再把該大段密文分成若干小段密文。 3. 使用d和n把所有小段密文進行解密成對應的小段密文sectbyte[],再合成一大段明文字節數組byte[],并轉化成大段明文添加到DecText。 4. 讀取下一大段密文,若密文為空,完成解密;否則轉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.
標簽: 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
標簽: data pointed buffer serial
上傳時間: 2015-06-14
上傳用戶:極客
用C51實現的拼音輸入法,這是改寫的網友 embuffalo、獨步上載在www.21ic.com自由發布區的由張凱原作的51上的拼音輸入法程序。 原作使用了一個二維數組用以查表,我認為這樣比較的浪費空間,而且每個字表的索引地址要手工輸入,效率不高。所以我用結構體將其改寫了一下。就是大家現在看到的這個。 因為代碼比較的大,共有6,000多漢字,這樣就得要12,000 byte來存放GB內碼,所以也是沒辦法的 :-( 編譯結果約為3000h,因為大部分是索引表,代碼優化幾乎無效。 在Keil C里仿真芯片選用的是華邦的W77E58,它有32k ROM, 256B on-chip RAM, 1K on-chip SRAM (用DPTR1指針尋址,相當于有1K的片上xdata)。條件有限,沒有上片試驗,仿真而已。 打算將其移植到AVR上,但CodeAVRC與IAR EC++在結構體、指針的定義使用上似乎與C51不太一樣,現在還未搞定。還希望在這方面有經驗的網友能給予指導。
上傳時間: 2014-01-26
上傳用戶:semi1981
可以將以bit為單位進行處理的算法擴展到8位,即以byte為單位進行處理。由于有8個bit,所以有2^8種選擇。這樣明顯會使運行時 間大為減少,速度明顯更快,但是也有它的缺點,即,占用資源太大,所以綜合考慮速度和 資源兩點,采用半字節查表法。即以半 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.
標簽: 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.
標簽: 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.
標簽: 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)
標簽: 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
標簽: include NAMESPACE_BEGIN MAX_LINE_LENG CryptoPP
上傳時間: 2015-12-07
上傳用戶:古谷仁美