版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認(rèn)領(lǐng)
文檔簡介
古典密碼(1)-ClassicalEncryptionTechniques1教學(xué)視頻、國家級一流在線課程鏈接:/course/FUDAN-12063578111.古典密碼
1.1對稱密鑰密碼模型
SymmetricCipherModel2要解決的問題:通信保密安全需求SecurityRequirements安全服務(wù)SecurityServices保密性Confidentiality完整性Integrity可用性Availability3三個古典密碼系統(tǒng)羊皮傳書藏頭詩Caesar4羊皮傳書古希臘的斯巴達(dá)人將一條1厘米寬、20厘米左右長的羊皮帶,以螺旋狀繞在一根特定粗細(xì)的木棍上…...5藏頭詩明才子唐伯虎:我愛蘭江水悠悠,愛晚亭上楓葉稠。秋月溶溶照佛寺,香煙裊裊繞經(jīng)樓。明朝解縉祝某宰相壽辰進詩:真真宰相,老老元臣,烏紗戴頂,龜鶴遐林.粗看"密文”,渾然詩句,頌揚兼祝愿,福祿壽全有;細(xì)究則密語藏頭,挖苦帶諷刺,詛咒"真老烏龜”6CaesarCipherearliestknownsubstitutioncipherbyJuliusCaesar
firstattesteduseinmilitaryaffairsexample:meetmeafterthetogapartyPHHWPHDIWHUWKHWRJDSDUWB7Terminologiesplaintext-theoriginalmessageciphertext-thecodedmessagekey-infousedincipherknownonlytosender/receiverencipher(encrypt)-convertingplaintexttociphertextdecipher(decrypt)-recoveringplaintextfromciphertextcipher-algorithmfortransformingplaintexttociphertext8SymmetricCipherModel9DefinitionAcryptosystemisa5-tuple
(E,D,p,K,C),wherepisthesetofplaintexts,Kthesetofkeys,Cisthesetofciphertexts,E:M×KCisthesetofEncryptionalgorithms,D:C×KMisthesetofDecryptionalgorithms.101.古典密碼
1.2密碼學(xué)的基礎(chǔ)假設(shè)11三個古典系統(tǒng)的再討論Caesar羊皮傳書藏頭詩12CaesarCiphermeetmeafterthetogapartyPHHWPHDIWHUWKHWRJDSDUWBp,C,K,E,D?13CaesarCiphercandefinetransformationas:abcdefghijklmnopqrstuvwxyzDEFGHIJKLMNOPQRSTUVWXYZABCmathematicallygiveeachletteranumberabcdefghijklm0123456789101112nopqrstuvwxyZ13141516171819202122232425thenhaveCaesarcipheras:C=E(p)=(p+k)mod(26)p=D(C)=(C–k)mod(26)14羊皮傳書E,D,p,C,K?15藏頭詩真真宰相,老老元臣,烏紗戴頂,龜鶴遐林.E,D,p,C,K?全詩為"密文”,其"密鑰”是每句詩的首字,可串接成義,作者的真意就隱藏在詩句的首字串接文("明文”)中.Steganography,隱寫術(shù)16RethinkingoftheModel17encipherdecipher(plaintextin-ciphertextout)ciphertextmsg(ciphertextin-plaintextout)(shouldunderstand
nothing
aboutthemsg)eavesdropperbla-blacmb-cmbbla-blaSharedKeyNeed
keyexchangeAliceandBobwanttoestablishasharedsecret(key)whenotherpeople(eavesdroppers)arelisteningHowto?inboundVs.outbound18AliceBobDiscursionsontheModel19Q1:Whyuseakey?Q2:Whichpartsshouldbekeptsecret?whichnot?Discussion模型合理嗎?什么當(dāng)保密;什么當(dāng)公開?19世紀(jì)荷蘭人A.Kerckhoffs就提出了一個在密碼學(xué)界被公認(rèn)為基礎(chǔ)的假設(shè),也就是著名的“Kerckhoffs假設(shè)”:秘密必須全寓于密鑰。
OtherModels?2021Discussion“誰是我們的敵人,誰是我們的朋友,這個問題是革命的首要問題”——毛選易用性秘密全部寓于密鑰≠算法當(dāng)公開,要看應(yīng)用環(huán)境(商用,軍用,……)開放的系統(tǒng)更安全,??Terminologies(cont.)cryptography-studyofencryptionprinciples/methodscryptanalysis(codebreaking)-thestudyofprinciples/methodsofdecipheringciphertextwithoutknowingkeycryptology-thefieldofbothcryptographyandcryptanalysis22CryptographyCatalogThetypeofoperationsusedfortransforming
plaintexttociphertextSubstitution:eachelementintheplaintextismappedintoanotherelementTransposition:elementsintheplaintextarerearrangedProduct:multiplestagesofsubstitutionsandtranspositionsThenumberofthekeysusedSymmetric,single-key,secret-key,conventional
encryption:BothsenderandreceiverusethesamekeyAsymmetric,two-key,orpublic-key
encryption:thesenderandreceiveeachusesadifferentkey23CryptographyCatalogThewayinwhichtheplaintextisprocessedBlock:processestheinputoneblockofelementsatatime,producinganoutput
block
foreachinputblockStream:processestheinputelementscontinuously,producingoutputoneelementatatime,asitgoesalong.242.如何設(shè)計好的密碼算法?
攻擊->防御->改進->更好的密碼算法->攻擊…螺旋式上升過程中領(lǐng)會密碼設(shè)計的關(guān)鍵問題252.如何設(shè)計好的密碼算法?
2.1
Caesar密碼與單字母表密碼
攻擊->防御->改進->更好的密碼算法->攻擊…螺旋式上升過程中領(lǐng)會密碼設(shè)計的關(guān)鍵問題26SubstitutionTechniquesCaesarcipherEasytobreak!27CryptanalysisofCaesarCipherThereareonly25keystotryAmapstoA,B,..Zcouldsimplytryeachinturnabruteforcesearch
givenciphertext,justtryallshiftsoflettersThelanguageofPlaintextisknownandeasilyrecognizabledoneedtorecognizewhenhaveplaintexteg.breakciphertext"GCUAVQDTGCM"28MonoalphabeticCipherImprovementonCaesarCipherRatherthansubstitutingaccordingtoaregularpattern–anylettercanbesubstitutedforanyotherletter,aslongaseachletterhasauniquesubstituteletter,andviceversa.29MonoalphabeticCipherK: Plain:abcdefghijklmnopqrstuvwxyz Cipher:DKVQFIBJWPESCXHTMYAUOLRGZNPlaintext:ifwewishtoreplacelettersCiphertext:WIRFRWAJUHYFTSDVFSFUUFYA
hencekeyis26letterslong30MonoalphabeticCipherSecuritynowhaveatotalof26!=4x1026keyswithsomanykeys,mightthinkissecure
butwouldbe!!!WRONG!!!
problemislanguagecharacteristics31LanguageRedundancyandCryptanalysishumanlanguagesareredundant
lettersarenotequally
commonlyusedinEnglisheisbyfarthemostcommonletter,thenT,R,N,I,O,A,S
somelettersarefairlyrare,eg.Z,J,X,Qtablesofsingle,double&tripleletterfrequencies32FrequencyofLettersinEnglishText33UseinCryptanalysiskeyconcept-monoalphabeticsubstitutionciphersdonotchangerelativeletterfrequencies
discoveredbyArabianscientistsin9thcenturycalculateletterfrequenciesforciphertextcomparecounts/plotsagainstknownvaluesifCaesarcipherlookforcommonpeaks/troughspeaksat:A-E-Itriple,NOpair,RSTtripletroughsat:JK,X-Zformonoalphabeticmustidentifyeachlettertablesofcommondouble/triplelettershelp34CryptanalyticAttacks35對于對手而言最壞情況下,仍有一種攻擊方法可用BruteForceSearch,窮舉法BruteForceSearchalwayspossibletosimply
try
everykey
mostbasic
attack,proportionaltokeysizeassumeeitherknoworrecogniseplaintext36MoreDefinitionsunconditionalsecurity
nomatterhowmuch
computerpowerisavailable,theciphercannotbebrokensincetheciphertextprovidesinsufficientinformationtouniquelydeterminethecorrespondingplaintextcomputationalsecurity
givenlimited
computingresources(eg.timeneededforcalculationsisgreaterthanageofuniverse),theciphercannotbebroken
Unconditionalsecuritywouldbenice,buttheonlyknownsuchcipheristheone-timepad(later).Forallreasonable
encryptionalgorithms,havetoassumecomputationalsecuritywhereiteithertakestoolong,oristooexpensive,tobother
breakingthecipher.372.如何設(shè)計好的密碼算法?
2.2
Playfair密碼
攻擊->防御->改進->更好的密碼算法->攻擊…螺旋式上升過程中領(lǐng)會密碼設(shè)計的關(guān)鍵問題38MonoalphabeticCipherSecuritynowhaveatotalof26!=4x1026keyswithsomanykeys,mightthinkissecure
butwouldbe!!!WRONG!!!
problemislanguagecharacteristics39提高單字母表密碼安全性兩個角度“多”對“一”
Playfair“一”對“多”
Vigenère40PlayfairCiphernoteventhelargenumberofkeysinamonoalphabeticcipherprovidessecurity
oneapproachtoimprovingsecuritywastoencryptmultiplelettersthePlayfairCipherisanexampleinventedbyCharlesWheatstonein1854,butnamedafterhisfriendBaronPlayfair
4142PlayfairKeyMatrixa5X5matrixoflettersbasedonakeywordfillinlettersofkeyword(sansduplicates)fillrestofmatrixwithotherletterseg.usingthekeywordMONARCHYMONARCHYBDEFGIKLPQSTUVWXZ43EncryptingandDecryptingplaintextencryptedtwolettersatatime:ifapairisarepeatedletter,insertafillerlike'X', eg."balloon"encryptsas"balxloon"ifbothlettersfallinthesame
row,replaceeachwithlettertoright(wrappingbacktostartfromend), eg.“ar"encryptsas"RM"ifbothlettersfallinthesame
column,replaceeachwiththeletterbelowit(againwrappingtotopfrombottom),eg.“mu"encryptsto"CM"otherwiseeachletterisreplacedbytheoneinitsrowinthecolumnof
theotherletterofthepair,eg.“hs"encryptsto"BP",and“ea"to"IM"or"JM"(asdesired)44SecurityofthePlayfairCiphersecuritymuchimproved
overmonoalphabeticsincehave26x26=676digramswouldneeda676entryfrequencytabletoanalyse(verses26foramonoalphabetic)andcorrespondinglymoreciphertextwaswidelyusedformanyyears(eg.US&BritishmilitaryinWW1)itcanbebroken,givenafewhundredletterssincestillhasmuchofplaintextstructure452.如何設(shè)計好的密碼算法?
2.3
Vigenère密碼
攻擊->防御->改進->更好的密碼算法->攻擊…螺旋式上升過程中領(lǐng)會密碼設(shè)計的關(guān)鍵問題46PolyalphabeticCiphersanotherapproachtoimprovingsecurityistousemultiplecipheralphabets
calledpolyalphabetic
substitution
ciphers
makescryptanalysisharderwithmorealphabetstoguessandflatterfrequencydistributionuseakeytoselectwhichalphabetisusedforeachletterofthemessageuseeachalphabetinturnrepeatfromstartafterendofkeyisreached47VigenèreCiphersimplestpolyalphabeticsubstitutioncipheristheVigenèreCipher
effectivelymultiplecaesarcipherskeyismultipleletterslongK=k1k2...kdithletterspecifiesithalphabettouseuseeachalphabetinturnrepeatfromstartafterdlettersinmessagedecryptionsimplyworksinreverse48VigenèreCipher49PlaintextKeyExamplewritetheplaintextoutwritethekeywordrepeatedaboveituseeachkeyletterasacaesarcipherkeyencryptthecorrespondingplaintextletteregusingkeyworddeceptiveKey:deceptivedeceptivedeceptivePlaintext:wearediscoveredsaveyourselfCiphertext:ZICVTWQNGRZGVTWAVZHCQYGLM
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2024年甲乙雙方增強現(xiàn)實設(shè)備電腦采購合同
- 2024-2025學(xué)年桂林市永福縣數(shù)學(xué)三上期末調(diào)研模擬試題含解析
- 辦公場所的電力安全與防范措施
- 醫(yī)療背景下兒童音樂的情緒調(diào)節(jié)功能研究
- 2025中國鐵塔社會招聘28人高頻重點提升(共500題)附帶答案詳解
- 2025中國移動廣東分公司校園招聘高頻重點提升(共500題)附帶答案詳解
- 2025中國農(nóng)業(yè)科學(xué)院北京畜牧獸醫(yī)研究所奶產(chǎn)品質(zhì)量與風(fēng)險評估科技創(chuàng)新團隊公開招聘高頻重點提升(共500題)附帶答案詳解
- 2025中國一冶集團限公司交通工程公司招聘80人高頻重點提升(共500題)附帶答案詳解
- 2025東方電氣集團(成都)共享服務(wù)限公司招聘1名高頻重點提升(共500題)附帶答案詳解
- 2025下半年貴州黔南三都水族自治縣事業(yè)單位人才引進15人高頻重點提升(共500題)附帶答案詳解
- 北京市海淀區(qū)2021-2022學(xué)年第一學(xué)期四年級期末考試語文試卷(含答案)
- 2024-2030年中國企業(yè)大學(xué)行業(yè)運作模式發(fā)展規(guī)劃分析報告
- 電動力學(xué)-選擇題填空題判斷題和問答題2018
- 房地產(chǎn)激勵培訓(xùn)
- 山東省濟南市2023-2024學(xué)年高二上學(xué)期期末考試地理試題 附答案
- 【MOOC】微型計算機原理與接口技術(shù)-南京郵電大學(xué) 中國大學(xué)慕課MOOC答案
- 違章建筑舉報范文
- “小城鎮(zhèn)建設(shè)”論文(六篇)
- 人人愛設(shè)計學(xué)習(xí)通超星期末考試答案章節(jié)答案2024年
- 福建省廈門市翔安區(qū)2023-2024學(xué)年八年級上學(xué)期期末語文試題
- 模塊一:外貿(mào)業(yè)務(wù)操作技能試題
評論
0/150
提交評論