1. Introduction

1.1 Cryptography and Modern Cryptography

区别古典密码学现代密码学
定义ArtScience
理论支持Little TheoryRich Theory
关注点Secret CommunicationEncryption、Message Authentication、Digital Signature、Secure Protocol
应用领域MilitaryEverywhere

1.2 The Setting of Private-Key Encryption

The overview of cryptography

Cryptography
Classical Cryptography
Modern Cryptography
Steganography
Substitution
Caesar cipher
Vigenere cipher
Hill cipher
Transposition
Symmetric cryptography
ASymmetric cryptography
Block cipher
Stream cipher
Message authentication
DES
AES
RC4
MAC
Hash
Public key cryptography
ID-based cryptography
Advanced cryptography
RSA encryption
ElGamal signature
Elliptic curve cryptography

(A)Symmetric Encryption

Symmetric Encryption:加密和解密使用相同的密钥
ASymmetric Encryption:加密和解密使用不同的密钥

The Synax of Encryption

  1. Key Generation(Gen): Gen()是一个概率算法,根据方案定义的某种分布选择并输出密钥k
  2. Encryption Algorithm(Enc): 输入为密钥k和明文m,输出密文c, 记作 c : = E n c ( k , m ) c:=Enc(k,m) c:=Enc(k,m)或者 c ← E n c ( k , m ) c \leftarrow Enc(k,m) cEnc(k,m),前者表示确定性算法,后者表示概率算法
  3. Decryption Algorithm(Dec): 输入密文c和密钥k,输出明文m,记作 m : = D e c ( k , c ) m:=Dec(k,c) m:=Dec(k,c)

以上算法必须满足: D e c k ( E n c k ( m ) ) = m Dec_k(Enc_k(m))=m Deck(Enck(m))=m

Kerckhoff’s Principle

The cipher method must not be required to be secret, and it must be able to fall into the hands of the enemy without inconvenience.

1.3 Historical Ciphers and Their Cryptanalysis

1.Caesar’s Cipher: 对每个字符循环移动3位,即 c : = ( m + 3 ) % 26 c:=(m+3)\%26 c:=(m+3)%26
2.Shift Cipher: 这是改进版的Caesar’s Cipher,对每个字符循环移动k位,即 c i = ( m i + k ) % 26 c_i=(m_i+k)\%26 ci=(mi+k)%26,其中 k ∈ { 0 , … , 25 } k\in\{0,\dots,25\} k{0,,25}
3. The mono-alphabetic substitution cipher(单字母替换): 明文字符和密文字符形成了一一映射的关系 => Key Space = 26!。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值