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

正文內(nèi)容

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

2024-09-13 18:46上一頁面

下一頁面
  

【正文】 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。 } } } 陜西理工學(xué)院畢業(yè)設(shè)計(jì) 第 17 頁 共 45 頁 6 系統(tǒng)測(cè)試 仿射加密算法測(cè)試 仿射加密法的密鑰是由數(shù)字對(duì)( m, n)組成,在該軟件中, m 與 95 的最大公約數(shù)為 1, n在 0~95 之間。\039。 Passwd = (textLen)。 i++。 例如,選取密鑰矩陣為 4 4 可逆矩陣 , ?????????????4116109485105965968k ,明文為“ tang”。 (%s,obvious)。 } else chi = chPassKey[k]。 } return 26。 obvious[k] 91) { flag = 1。 char chi,chj。利用密鑰和密文對(duì),在 Vigenere中確定相應(yīng)的明文。 n++。 int i,j,k = 0,n = 0。i39。 int flag。 } obvious[i] = 39。 } return 1。 陜西理工學(xué)院畢業(yè)設(shè)計(jì) 第 3 頁 共 45 頁 char *m_a = (())。 從古典密碼學(xué)的研究到現(xiàn)代密碼學(xué)的發(fā)展,密碼學(xué)在我們生活中扮演 著 越來越重要的角色。要求實(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é)演示軟件開發(fā)的案例及相關(guān)經(jīng)驗(yàn)。在傳統(tǒng)仿射加密法中,字母表的字母被賦予一個(gè)數(shù)字,仿射加密法的密鑰為 0~25 之間的數(shù)字對(duì) (m,n), m 與 26 的最大公約數(shù)必須為 1。 c = (a * mida + b) % 95。 N = ()。因?yàn)樗怯靡粚?duì)字母來替代每個(gè)明文字母,加密后的密文是明文的兩倍大。 char *chKey = (())。 break。 (())。\039。 //text 為密鑰, result 返回的結(jié)果, len 明文長(zhǎng)度 int M = len % ()。 (textLen)。 if (j == 26 || i == 26) { Passwd[k] = obvious[k]。 int textLen = ()。 } else chj = Passwd[k]。例如,如果 m=3,那么 3 個(gè)明文字母的數(shù)值(假設(shè)為 p1,p2 和 p3)將通過如下的方程組轉(zhuǎn)換成密文數(shù)值 c1,c2和 c3: 26m o d)(c 3132121111 pkpkpk ??? 26m o d)(c 3232221212 pkpkpk ??? 26m o d)(c 3332321313 pkpkpk ??? 該加密法的密鑰是 kij值,取模操作的意思是將和除以 26,得余數(shù)。 int textLen = ()。 Passwd[j+1] = obvious[j+1]。 obvious[j+2] = (ArrayNKey[2][0] * (Passwd[j] 32) + ArrayNKey[2][1] * (Passwd[j+1] 32) + ArrayNKey[2][2] * (Passwd[j+2] 32) + ArrayNKey[2][3] * (Passwd[j+3] 32)) % 95 + 32。 for (i = 0。 陜西理工學(xué)院畢業(yè)設(shè)計(jì) 第 21 頁 共 45 頁 總 結(jié) 針對(duì)密碼學(xué)教學(xué)過程中不能形象展示加密解密這一過程的缺陷,設(shè)計(jì)實(shí)現(xiàn)了一款經(jīng)典加密解密教學(xué)演示軟件。 } (int) f:(int)x。李老師嚴(yán)謹(jǐn)求實(shí)的學(xué)風(fēng)、實(shí)事求是的工作作風(fēng)、淵博的專業(yè)知識(shí)、敏銳的洞察力以及對(duì)專業(yè)孜孜不倦的追求,給我深深的教益和啟迪,是我今后工作和學(xué)習(xí)的楷模。 for (i = 0。 obvious[j+1] = Passwd[j+1]。 return result。 while(i N) { Passwd[j] = (ArrayKey[0][0] * (obvious[j] 32) + ArrayKey[0][1] * (obvious[j+1] 32) + 陜西理工學(xué)院畢業(yè)設(shè)計(jì) 第 14 頁 共 45 頁 ArrayKey[0][2] * (obvious[j+2] 32) + ArrayKey[0][3] * (obvious[j+3] 32)) % 95 + 32。 要使這個(gè)過程可行,則密鑰矩陣必須是可逆的,因此密鑰值不可隨機(jī)選取。 } 陜西理工學(xué)院畢業(yè)設(shè)計(jì) 第 11 頁 共 45 頁 else { if (flag == 1) { obvious[k] = ArrayNum[t] 32。 for (k = 0。 (%s,Passwd)。amp。 i++) { strcat(result,strText)。用密鑰字母確定表的行,而明文字母確定表的列,表中行列交叉處的字母就是用來替代明文字母的密文字母 。 } 陜西理工學(xué)院畢業(yè)設(shè)計(jì) 第 6 頁 共 45 頁 } if(flag == 1) { for(j = 0。 (%s,Passwd)。 j 5。 解密過程 則 為反向查找矩陣的過程。i++) { mida = m_a[i] 32。 } int CFCpasswd::getFa(int a) //求 a 逆 { int i,n。將“ tangyang”轉(zhuǎn)換成數(shù)字 11 9 1 10 12 9 1 103,利用放射加密等式生成: c(t)=((2 (11632)+7)mod 95)+32=112,即為數(shù)字“ p” c(a)=((2 (9732)+7)mod 95)+32=74,即為字母“ J” c(n)=((2 (11032)+7)mod 95)+32=100, 即為字母“ d” c(g)=((2 (10332)+7)mod 95)+32=86, 即為字母“ v” C(y)=((2(12132)+7) mod95)+32=122,即為字母 “z” 注:由于 ASCII 碼表中前 33 個(gè)為不可顯示字符,因此在加密運(yùn)算過程中明文字母 p 要先減去32( ASCII 碼表中從 0 開始),求完模 之后的結(jié)果再加上 32, 這樣,對(duì)于 (2,7)這個(gè)密鑰,“ tangyang”加密后變成了“ pJdvzJdv” 。 Hill method 陜西理工學(xué)院畢業(yè)設(shè)計(jì) 目 錄 1 課題實(shí)施的背景 ....................................................................................... 1 2 仿射加密法 ............................................................................................... 2 算法概述 .......................................................................................... 2 算法分析 .......................................................................................... 2 ........................................................................................... 2 3 多文字加密法 .......................................................................................... 4 算法概述 .......................................................................................... 4 算法分析 .......................................................................................... 4 核心代碼 .......................................................................................... 4 4 VIGENERE 加密法 ...................................................................................... 7 算法概述 .......................................................................................... 7 算法分析 ....................................................
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報(bào)告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1