当前位置:网站首页>Learning records 568@RSA Public key system and its decryption proof mode II
Learning records 568@RSA Public key system and its decryption proof mode II
2022-04-22 14:42:00 【Coach, I want to learn programming】
summary
RSA The basic operation of public key system is the operation of exponential power under module , Its decryption idea is to seek the inverse element under the module .
Suppose Party A intends to establish its own RSA Public key system , A first selects two large prime numbers p and q, And calculate n=p*q. Then select a positive integer e, send 1<e<n And gcd(e,Φ(n))=1, Finally, it is found that e In the mold Φ(n) The inverse element under d, namely ed ≡ 1 (mod Φ(n)). A general (e,n) Public as public key , take d,p,q and (n) Keep it secret and use it (d,n) As the private key .
It is assumed that Party B needs to express M Use Party A's RSA The public key system is encrypted and sent to Party A , among M Less than n The positive integer .RSA The encryption algorithm is as follows :
- C = M e M^e Me mod n
- Party a received C After use RSA The decryption algorithm will C Decrypt ,M = C d C^d Cd mod n.
The core of the proof of its decryption in the last article is the use of the Chinese Remainder Theorem , This article uses another way to prove .
Decryption proof
Basics
- Euler theorem : Make a and n Is two mutually prime positive integers , be a Φ ( n ) a^{Φ(n)} aΦ(n) ≡ 1 (mod n)
- Fermat's small Theorem : Make p As a prime number ,a Is a positive integer and is not p to be divisible by , be a p − 1 a^{p-1} ap−1 ≡ 1 (mod p)
prove


As far as I'm concerned , I never fear mistakes , Unless it turns out I'm wrong , Otherwise, I never think I've done anything wrong . actually , Only I give full play to my experience , I will feel at ease . At a certain time , The performance of the market does not prove me wrong , Only the characteristics of rise or fall can determine whether my market position is right or wrong . Only by the power of knowledge , I can win . If it fails , It must have been my own mistake .
版权声明
本文为[Coach, I want to learn programming]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204221434593046.html
边栏推荐
- Crossplane - a more advanced cloud infrastructure management platform than terraform?
- 声明式与命令式编程,哪个是未来编程的王者 Declarative vs Imperative
- Collection class
- net::ERR_INCOMPLETE_CHUNKED_ENCODING 200 EL表达式字符串拼接
- 每日一题——三国游戏(对角矩阵)
- How do I copy requests from the Chrome web tab to postman?
- 若依同时集成jsp和thymeleaf解决方案
- Android 92022-2022 byte beating Android interview real question analysis
- 浅谈IM系统中离线消息、历史消息的最佳实践
- android 国际区号注册手机号编码 以及常用城市列表,安卓内存优化面试
猜你喜欢

【ELT.ZIP】OpenHarmony啃论文俱乐部——细数生活中的压缩点滴

It people should not only improve their earning ability, but also expand their ways of making money. The "immortal document" released by Tencent's technical officer is a hot network

arcengine 这个集合中找不到此项目
985 Shuo's difficult transition to Android, plus face-to-face experience sharing, meituan Android interview

asp. Net framework configures swagger and supports uploading files

Get the sum of a value in each item object in the array (use of reduce)

Archengine point, line, face, text rendering

In depth analysis of blocking queue BlockingQueue (explain arrayblockingqueue and linkedblockingqueue and their applications in detail)

@Resources and constructors

【ELT.ZIP】《CCF开源高校行第一期》观后感
随机推荐
Inner volume Dachang series "search automatic completion two combos"
arcengine 这个集合中找不到此项目
如何配置 SLO
Arcengine开发效率优化(不定时更新)
Tencent build project image
ArcEngine symbol correlation
Upload and download of shared folders on remote server
LeetCode_63 不同路径 II
Spark code spark submit submit submit yarn cluster mode
Kubecost | kubernetes expenditure monitoring and management
Leetcode (04)
Deep understanding of read-write lock reentrantreadwritelock and concurrent container copyonwritearraylist
Comparison of ArcGIS version updates
Quickly understand what the dictionary in redis is
Interrupted () and isinterrupted () detail the method of paging query of millions of data and its optimization method
Crossplane - a more advanced cloud infrastructure management platform than terraform?
android 国际区号注册手机号编码 以及常用城市列表,安卓内存优化面试
GeoServer WMTs slice calculation
App+小程序容器 企业也能轻松打造超级应用生态
flex布局