Skip to content

Latest commit

 

History

History
33 lines (18 loc) · 485 Bytes

File metadata and controls

33 lines (18 loc) · 485 Bytes

非对称加密算法

[toc]

RSA

RSA非对称加密算法可以用于非对称加密和数字签名

RSA的加密过程

$$ 密文 = 明文^E mod N(RSA加密) $$

  • E和N的组合就是公钥
  • E是加密encryption
  • N是数字Number

一句话来说,RSA加密就是==求E次方的modN==

RSA的解密过程

$$ 明文 = 密文^D mod N(RSA解密) $$

  • D和N组合起来是对应的私钥对
  • D是解密decryption