SlideShare a Scribd company logo
1 of 1
Download to read offline
1
Az RSA algoritmus bemutatás egy egyszerü példán keresztül.
1.) Kiválasztunk két egymástól különbözö tetszöleges prím számot:
p = 3 és q = 7
2.) A kiválasztott prím szorzatát képezzük:
N = p · q = 3 · 7 = 21
3.) Az Euler-függvényt felhasználva, meghatározzuk az elöbb kiszámolt N-hez a relatív prímek számát:
ϕ(N) = (p − 1)(q − 1) = (3 − 1)(7 − 1) = 2 · 6 = 12
4.) Ezt követöen a ϕ(N) ismeretében meghatározzuk e (e ∈ Z, e > 1) (e-encrypted) értékét, úgy, hogy a ϕ(N) és e egymáshoz
képest relatív prímek (1-en és -1-en kivül nincs más közös ösztójuk)
lnko(e, ϕ(N)) = 1
lnko(e, 12) = 1
Az e lehetséges értékei: 1, 5, 7, 11 (A feltétel miatt az 1 kiesik)
5.) Kongruencia elmélete:
a ≡ b ( mod m) , m|(a − b), hogy ∃k ∈ Z : a = km + b
Pl.: 7 ≡ 2(mod 5), ezt úgy olvassuk, hogy a 7 és a 2 öttel osztva ugyanazt a maradékot adja.
A kongruencia relációt felhasználva, e számított értékhez keressünk egy d értéket (d-decrypted), hogy
e · d ≡ 1 ( mod ϕ(N))
ez annyit jelent, hogy e ismeretében keresünk egy olyan d számot, amelyet e-vel megszorozva, majd a szorzat értékét tekintve
kongruenciát képzünk 1-gyel, és így a maradék a korábban számított ϕ(N) érték lesz.
5 · d ≡ 1 mod 12 −→ 12|(5d − 1)
Lehetséges esetek például 5d − 1 = 12, 5d − 1 = 24, 5d − 1 = 36...
Ebböl a második kézenfekvö:
5d − 1 = 24
5d = 25
d = 5
6.) Nyilvános kulcsinformációk: N = 21, e = 5
7.) Titkos kulcsinformációk: N = 21, d = 5
8.) Kódolás képlete: C = me
mod N, ahol m-et tekintjük a titkosítandó adatnak.
Pl.: m = @, az adatot számszerüsítve legyen @ → 3
C = 35
mod 21 = 243 mod 21 = 12
9.) Dekódolás képlete: m = Cd
mod N
m = 125
mod 21 = 248832 mod 21 = 3

More Related Content

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 

rsa

  • 1. 1 Az RSA algoritmus bemutatás egy egyszerü példán keresztül. 1.) Kiválasztunk két egymástól különbözö tetszöleges prím számot: p = 3 és q = 7 2.) A kiválasztott prím szorzatát képezzük: N = p · q = 3 · 7 = 21 3.) Az Euler-függvényt felhasználva, meghatározzuk az elöbb kiszámolt N-hez a relatív prímek számát: ϕ(N) = (p − 1)(q − 1) = (3 − 1)(7 − 1) = 2 · 6 = 12 4.) Ezt követöen a ϕ(N) ismeretében meghatározzuk e (e ∈ Z, e > 1) (e-encrypted) értékét, úgy, hogy a ϕ(N) és e egymáshoz képest relatív prímek (1-en és -1-en kivül nincs más közös ösztójuk) lnko(e, ϕ(N)) = 1 lnko(e, 12) = 1 Az e lehetséges értékei: 1, 5, 7, 11 (A feltétel miatt az 1 kiesik) 5.) Kongruencia elmélete: a ≡ b ( mod m) , m|(a − b), hogy ∃k ∈ Z : a = km + b Pl.: 7 ≡ 2(mod 5), ezt úgy olvassuk, hogy a 7 és a 2 öttel osztva ugyanazt a maradékot adja. A kongruencia relációt felhasználva, e számított értékhez keressünk egy d értéket (d-decrypted), hogy e · d ≡ 1 ( mod ϕ(N)) ez annyit jelent, hogy e ismeretében keresünk egy olyan d számot, amelyet e-vel megszorozva, majd a szorzat értékét tekintve kongruenciát képzünk 1-gyel, és így a maradék a korábban számított ϕ(N) érték lesz. 5 · d ≡ 1 mod 12 −→ 12|(5d − 1) Lehetséges esetek például 5d − 1 = 12, 5d − 1 = 24, 5d − 1 = 36... Ebböl a második kézenfekvö: 5d − 1 = 24 5d = 25 d = 5 6.) Nyilvános kulcsinformációk: N = 21, e = 5 7.) Titkos kulcsinformációk: N = 21, d = 5 8.) Kódolás képlete: C = me mod N, ahol m-et tekintjük a titkosítandó adatnak. Pl.: m = @, az adatot számszerüsítve legyen @ → 3 C = 35 mod 21 = 243 mod 21 = 12 9.) Dekódolás képlete: m = Cd mod N m = 125 mod 21 = 248832 mod 21 = 3