freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

一款經(jīng)典加密解密教學(xué)演示軟件的開(kāi)發(fā)畢業(yè)設(shè)計(jì)(更新版)

  

【正文】 asswd[k]。 k++) { if (chPassKey[k] 64 amp。 int textLen = ()。 } int CVienerePasswd::getPassNum(char ch) 陜西理工學(xué)院畢業(yè)設(shè)計(jì) 第 10 頁(yè) 共 45 頁(yè) { for (int i = 0。 if (j == 26 || i == 26) { Passwd[k] = obvious[k]。 //大寫字母轉(zhuǎn)換為小寫字母 } else chi = chPassKey[k]。 (textLen)。 else { strcat(result,strText)。 //text 為密鑰, result 返回的結(jié)果, len 明文長(zhǎng)度 int M = len % ()。對(duì)照 Vigenere 表查找密文分析結(jié)果如下: 大寫字母處理:首先將大寫字母轉(zhuǎn)換成小寫字母,找到其密 文后再將其轉(zhuǎn)換成對(duì)應(yīng)的小寫字母。\039。j++) { if(Passwd[n+1] == chKey[j]) break。 (())。 } //解密函數(shù) CString CMoreWordPasswd::MWRelessPass(CString oldText,CString passKey) { int textLen = ()。 break。 if (mid == 39。 char *chKey = (())。 明文“ t”替代了密文的“ ee”,明文“ a”替代了密文的“ tt”,以此類推,密文“ ee tt kk aa se tt kk aa ”解密后的明文為“ tangyang”。因?yàn)樗怯靡粚?duì)字母來(lái)替代每個(gè)明文字母,加密后的密文是明文的兩倍大。 while (m_b 0) m_b = m_b + 95。 N = ()。 i 95。 c = (a * mida + b) % 95。 char mida,c。在傳統(tǒng)仿射加密法中,字母表的字母被賦予一個(gè)數(shù)字,仿射加密法的密鑰為 0~25 之間的數(shù)字對(duì) (m,n), m 與 26 的最大公約數(shù)必須為 1。繼 CSDN、 天涯社區(qū)用戶數(shù)據(jù)泄露后,互聯(lián)網(wǎng)行業(yè)一片人心惶惶,而在用戶數(shù)據(jù)最為重要的電商領(lǐng)域,也不斷傳出 用戶信息 漏洞,漏洞報(bào)告平臺(tái)烏云發(fā)布漏洞報(bào)告稱,支付 寶用戶大量泄露,被用于網(wǎng)絡(luò)營(yíng)銷,泄露總量達(dá) 1200 萬(wàn)~ 2300 萬(wàn)之多。要求實(shí)現(xiàn)的功能: 實(shí)現(xiàn)仿射加密與解密 實(shí)現(xiàn)多文字加密與解密 實(shí)現(xiàn) Vigenere 密與解密 實(shí)現(xiàn) Hill 加密與解密 五、畢業(yè)設(shè)計(jì)應(yīng)收集資料及參考文獻(xiàn): 搜集關(guān)于經(jīng)典密碼學(xué)相關(guān)資料; 收集教學(xué)演示軟件開(kāi)發(fā)的案例及相關(guān)經(jīng)驗(yàn)。 【 關(guān)鍵詞 】 仿射加密法;多文字加密法; Vigenere 加密法; Hill 加密法 陜西理工學(xué)院畢業(yè)設(shè)計(jì) The Development of A Classical Encryption And Decryption Demo Software For Teaching TangYang (Grade 13, Upgraded Class 1, Major Computer Science and Technology, School of Mathematics and Computer Science .Shaanxi University of Technology, Hanzhong 723000, Shaanxi) Tutor: LI Jun Abstract: In order to show the process of encrypt and decrypt in the teaching of classical cryptography, A teaching demo software of a classical encryption and decryption was developed. According to the single code and multiple code encryption algorithm of classical cryptography, Using objectoriented programming method, implementation of the affine encryption method, multiple text encryption method, Vigenere encryption method and Hill encryption method in Microsoft Visual C++ . Key words: Affine method。 從古典密碼學(xué)的研究到現(xiàn)代密碼學(xué)的發(fā)展,密碼學(xué)在我們生活中扮演 著 越來(lái)越重要的角色。 例如,選取密鑰為 (2,7)。 陜西理工學(xué)院畢業(yè)設(shè)計(jì) 第 3 頁(yè) 共 45 頁(yè) char *m_a = (())。\039。 } return 1。 (N)。 } obvious[i] = 39。字母表的每個(gè)字母填寫在這個(gè)矩陣中。 int flag。 for(i = 0。i39。 } k++。 int i,j,k = 0,n = 0。i 5。 n++。 } 陜西理工學(xué)院畢業(yè)設(shè)計(jì) 第 7 頁(yè) 共 45 頁(yè) 4 Vigenere 加密法 算 法概述 Vigenere 加密法不同于上面的兩種加密法,它是一個(gè)著名的多碼加密法。利用密鑰和密文對(duì),在 Vigenere中確定相應(yīng)的明文。 strcpy(result,strText)。 char chi,chj。 for (k = 0。 obvious[k] 91) { flag = 1。 } else Passwd[k] = ArrayKey[i][j]。 } return 26。 (textLen)。 } else chi = chPassKey[k]。 t 26。 (%s,obvious)。 由于傳統(tǒng)的 Hill 加密算法只對(duì) 26 個(gè)字母進(jìn)行加密,為了解決這一局限,對(duì)常用符號(hào)也能進(jìn)行加密,從而采用 ASCII 碼表作為加密參考,將模改為 95(注: ASCII 碼值有 128 個(gè),由于前 33 個(gè)為不可顯示字符,因此在加密的過(guò)程中排除,故將模改為 95)。 例如,選取密鑰矩陣為 4 4 可逆矩陣 , ?????????????4116109485105965968k ,明文為“ tang”。 obvious = (textLen)。 i++。\039。 Passwd = (textLen)。 i++。\039。 j 4。 } } } 陜西理工學(xué)院畢業(yè)設(shè)計(jì) 第 17 頁(yè) 共 45 頁(yè) 6 系統(tǒng)測(cè)試 仿射加密算法測(cè)試 仿射加密法的密鑰是由數(shù)字對(duì)( m, n)組成,在該軟件中, m 與 95 的最大公約數(shù)為 1, n在 0~95 之間。由于傳統(tǒng)仿射加密算法及 Hill 加密算法僅對(duì) 26 個(gè)英文字母進(jìn)行了加密解密,因此采用模 26 加密解密算法,為了解決這一局限,對(duì)常用符號(hào)也能進(jìn)行加密,從而采用 ASCII 碼表作為加密參考,最終采用模 95 實(shí)現(xiàn)加密算法(注: ASCII 碼值有 128 個(gè),由于前 33 個(gè)為不可顯示字符,因此在加密的過(guò)程中排除,故將模改為 95)。 it’s related to the object model. Smalltalk and Java makeuse of a root class, while C++ does not.. Strictly speaking, every object should be of type NSObject, and every pointer to an object could be declared as NSObject*. In fact, one can use the type id instead. This is a short and handy way to declare a pointer to any object, and provides dynamic typechecking instead of static typechecking. It is very useful for some weak typing on generic methods. Please note that a null pointer to an object should be set to nil, not NULL. These values are not interchangeable. A normal C pointer can be set to NULL, but nil was introduced in ObjectiveC for pointers to objects. In ObjectiveC, classes are also objects (metaclass instances), and it is possible to declare a pointer to a class. Their null value is Nil. Class declaration It is hard to show with a single example all the differences between ObjectiveC and C++ for classdeclaration and implementation. Syntax and concepts are interleaved and require explanation. Inthe following, the differences are exposed sequentially and specifically. Attributes and methods In ObjectiveC, attributes are called instance data, and member functions are called methods. C++ ObjectiveC class Foo { double x。 this symbol has nothing to do with the UML notation andthe meaning public or private. The type of the parameters are enclosed in parenthesis, and theparameters are separated by the symbol “:”. Please see Section on the next page for furtherexplanations on the syntax of prototypes. In ObjectiveC, there is no need for a semicolon at the end of a class declaration. Also notethat the keyword to declare a class is interface and not class. The keyword class is onlyused in forward declarations (cf. section on the current page). Finally, if there is no instancedata in a class, the braces, which would enclose nothing, can be ommitted. Forward declarations: class, protocol To avoid cyclic dependencies in header files, the C language supports the forward declaration,that allows the coder to
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報(bào)告相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1