×
1 Choose EITC/EITCA Certificates
2 Learn and take online exams
3 Get your IT skills certified

Confirm your IT skills and competencies under the European IT Certification framework from anywhere in the world fully online.

EITCA Academy

Digital skills attestation standard by the European IT Certification Institute aiming to support Digital Society development

SIGN IN YOUR ACCOUNT TO HAVE ACCESS TO DIFFERENT FEATURES

CREATE AN ACCOUNT FORGOT YOUR PASSWORD?

FORGOT YOUR DETAILS?

AAH, WAIT, I REMEMBER NOW!

CREATE ACCOUNT

ALREADY HAVE AN ACCOUNT?
EUROPEAN INFORMATION TECHNOLOGIES CERTIFICATION ACADEMY - ATTESTING YOUR PROFESSIONAL DIGITAL SKILLS
  • SIGN UP
  • LOGIN
  • SUPPORT

EITCA Academy

EITCA Academy

The European Information Technologies Certification Institute - EITCI ASBL

Certification Provider

EITCI Institute ASBL

Brussels, European Union

Governing European IT Certification (EITC) framework in support of the IT professionalism and Digital Society

  • CERTIFICATES
    • EITCA ACADEMIES
      • EITCA ACADEMIES CATALOGUE<
      • EITCA/CG COMPUTER GRAPHICS
      • EITCA/IS INFORMATION SECURITY
      • EITCA/BI BUSINESS INFORMATION
      • EITCA/KC KEY COMPETENCIES
      • EITCA/EG E-GOVERNMENT
      • EITCA/WD WEB DEVELOPMENT
      • EITCA/AI ARTIFICIAL INTELLIGENCE
    • EITC CERTIFICATES
      • EITC CERTIFICATES CATALOGUE<
      • COMPUTER GRAPHICS CERTIFICATES
      • WEB DESIGN CERTIFICATES
      • 3D DESIGN CERTIFICATES
      • OFFICE IT CERTIFICATES
      • BITCOIN BLOCKCHAIN CERTIFICATE
      • WORDPRESS CERTIFICATE
      • CLOUD PLATFORM CERTIFICATENEW
    • EITC CERTIFICATES
      • INTERNET CERTIFICATES
      • CRYPTOGRAPHY CERTIFICATES
      • BUSINESS IT CERTIFICATES
      • TELEWORK CERTIFICATES
      • PROGRAMMING CERTIFICATES
      • DIGITAL PORTRAIT CERTIFICATE
      • WEB DEVELOPMENT CERTIFICATES
      • DEEP LEARNING CERTIFICATESNEW
    • CERTIFICATES FOR
      • EU PUBLIC ADMINISTRATION
      • TEACHERS AND EDUCATORS
      • IT SECURITY PROFESSIONALS
      • GRAPHICS DESIGNERS & ARTISTS
      • BUSINESSMEN AND MANAGERS
      • BLOCKCHAIN DEVELOPERS
      • WEB DEVELOPERS
      • CLOUD AI EXPERTSNEW
  • FEATURED
  • SUBSIDY
  • HOW IT WORKS
  •   IT ID
  • ABOUT
  • CONTACT
  • MY ORDER
    Your current order is empty.
EITCIINSTITUTE
CERTIFIED

Are public keys transferred secretly in RSA?

by Emmanuel Udofia / Monday, 05 August 2024 / Published in Cybersecurity, EITC/IS/CCF Classical Cryptography Fundamentals, Introduction to public-key cryptography, The RSA cryptosystem and efficient exponentiation

The RSA cryptosystem, named after its inventors Rivest, Shamir, and Adleman, is a cornerstone of public-key cryptography. It is widely used to secure sensitive data transmitted over the internet. One of the most intriguing aspects of RSA is its use of a pair of keys: a public key, which can be shared openly, and a private key, which must be kept secret. This dual-key mechanism enables secure communication and digital signatures, among other applications.

The RSA algorithm operates on the principle of the computational difficulty of factoring large composite numbers. The security of RSA relies on the fact that, while it is relatively easy to multiply two large prime numbers together to produce a composite number, it is computationally infeasible to reverse the process—i.e., to factor the composite number back into its prime components—within a reasonable time frame, given current technological constraints.

To generate an RSA key pair, one must follow these steps:

1. Select two distinct large prime numbers, p and q:
The primes should be chosen randomly and independently of each other. The product of these two primes, n = pq, forms part of both the public and private keys.

2. Compute n:
n is the modulus for both the public and private keys. It is a large composite number that is difficult to factor.

3. Calculate the totient \phi(n):
The totient \phi(n) is given by (p-1)(q-1). This value is used in the key generation process but is not part of the public key.

4. Choose an integer e:
e should be chosen such that 1 < e < \phi(n) and \gcd(e, \phi(n)) = 1. This means e and \phi(n) are coprime. The integer e is the public exponent and forms part of the public key.

5. Determine d:
d is the modular multiplicative inverse of e modulo \phi(n). In other words, d is the integer such that ed \equiv 1 \mod \phi(n). The value d is the private exponent and is kept secret.

The public key is composed of the pair (n, e), and the private key is composed of the pair (n, d). The public key can be openly distributed and used by anyone to encrypt messages intended for the key owner. However, only the private key owner can decrypt these messages.

The question of whether the public key is transferred secretly in RSA is central to understanding the mechanics and security of the system. In RSA, the public key is not transferred secretly; rather, it is designed to be openly distributed. The security of RSA does not rely on the secrecy of the public key but on the secrecy of the private key and the computational difficulty of deriving the private key from the public key.

Example of RSA Key Generation and Encryption

Let's consider a simplified example with small prime numbers to illustrate the RSA key generation and encryption process:

1. Select two distinct large prime numbers:
Let p = 61 and q = 53.

2. Compute n:
n = pq = 61 \times 53 = 3233.

3. Calculate the totient \phi(n):
\phi(n) = (p-1)(q-1) = 60 \times 52 = 3120.

4. Choose an integer e:
Let e = 17. We need to ensure that \gcd(e, \phi(n)) = 1. Since 17 is coprime with 3120, it is a valid choice.

5. Determine d:
d is the modular multiplicative inverse of 17 modulo 3120. Using the Extended Euclidean Algorithm, we find that d = 2753, since 17 \times 2753 \equiv 1 \mod 3120.

The public key is (n, e) = (3233, 17), and the private key is (n, d) = (3233, 2753).

To encrypt a message m using the public key, one would compute the ciphertext c as follows:

    \[ c \equiv m^e \mod n \]

To decrypt the ciphertext c using the private key, one would compute the original message m as follows:

    \[ m \equiv c^d \mod n \]

For instance, if the message m = 65, the encryption process would be:

    \[ c \equiv 65^{17} \mod 3233 \approx 2790 \]

To decrypt the ciphertext c = 2790, the decryption process would be:

    \[ m \equiv 2790^{2753} \mod 3233 \approx 65 \]

Security Implications

The security of RSA is predicated on the difficulty of factoring the modulus n. If an adversary could factor n into its prime components p and q, they could compute the totient \phi(n) and subsequently determine the private key d. However, for sufficiently large values of p and q, factoring n is computationally infeasible.

The public key's openness is a fundamental aspect of RSA's design. By allowing the public key to be openly distributed, RSA enables secure communication between parties who have never met or exchanged keys in a secure manner. This is in stark contrast to symmetric-key cryptography, where the key must be kept secret and securely exchanged between parties.

Practical Considerations

In practice, RSA key lengths are typically 2048 bits or more to ensure security. The choice of the public exponent e is often 65537 (which is 2^{16} + 1) because it is a prime number that provides a good balance between security and computational efficiency.

It is also important to consider the implementation of RSA. Vulnerabilities can arise from improper implementation, side-channel attacks, or inadequate random number generation for key creation. Therefore, using well-established cryptographic libraries and following best practices is essential.

In RSA, the public key is not transferred secretly; it is intended to be openly distributed. The security of RSA relies on the secrecy of the private key and the computational difficulty of factoring large composite numbers. By understanding these principles, one can appreciate the elegance and robustness of the RSA cryptosystem in securing digital communications.

Other recent questions and answers regarding EITC/IS/CCF Classical Cryptography Fundamentals:

  • Is cryptography considered a part of cryptology and cryptanalysis?
  • Will a shift cipher with a key equal to 4 replace the letter d with the letter h in ciphertext?
  • Does the ECB mode breaks large input plaintext into subsequent blocks
  • Do identical plaintext map to identical cipher text of a letter frequency analysis attact against a substitution cipher
  • What is EEA ?
  • Are brute force attack always an exhausive key search?
  • In RSA cipher, does Alice need Bob’s public key to encrypt a message to Bob?
  • Can we use a block cipher to build a hash function or MAC?
  • What are initialization vectors?
  • How many part does a public and private key has in RSA cipher

View more questions and answers in EITC/IS/CCF Classical Cryptography Fundamentals

More questions and answers:

  • Field: Cybersecurity
  • Programme: EITC/IS/CCF Classical Cryptography Fundamentals (go to the certification programme)
  • Lesson: Introduction to public-key cryptography (go to related lesson)
  • Topic: The RSA cryptosystem and efficient exponentiation (go to related topic)
Tagged under: Cybersecurity, Decryption, Encryption, Key Generation, Public Key Cryptography, RSA
Home » Cybersecurity / EITC/IS/CCF Classical Cryptography Fundamentals / Introduction to public-key cryptography / The RSA cryptosystem and efficient exponentiation » Are public keys transferred secretly in RSA?

Certification Center

USER MENU

  • My Account

CERTIFICATE CATEGORY

  • EITC Certification (106)
  • EITCA Certification (9)

What are you looking for?

  • Introduction
  • How it works?
  • EITCA Academies
  • EITCI DSJC Subsidy
  • Full EITC catalogue
  • Your order
  • Featured
  •   IT ID
  • EITCA reviews (Reddit publ.)
  • About
  • Contact
  • Cookie Policy (EU)

EITCA Academy is a part of the European IT Certification framework

The European IT Certification framework has been established in 2008 as a Europe based and vendor independent standard in widely accessible online certification of digital skills and competencies in many areas of professional digital specializations. The EITC framework is governed by the European IT Certification Institute (EITCI), a non-profit certification authority supporting information society growth and bridging the digital skills gap in the EU.

    EITCA Academy Secretary Office

    European IT Certification Institute ASBL
    Brussels, Belgium, European Union

    EITC / EITCA Certification Framework Operator
    Governing European IT Certification Standard
    Access contact form or call +32 25887351

    Follow EITCI on Twitter
    Visit EITCA Academy on Facebook
    Engage with EITCA Academy on LinkedIn
    Check out EITCI and EITCA videos on YouTube

    Funded by the European Union

    Funded by the European Regional Development Fund (ERDF) and the European Social Fund (ESF), governed by the EITCI Institute since 2008

    Information Security Policy | DSRRM and GDPR Policy | Data Protection Policy | Record of Processing Activities | HSE Policy | Anti-Corruption Policy | Modern Slavery Policy

    Automatically translate to your language

    Terms and Conditions | Privacy Policy
    Follow @EITCI
    EITCA Academy

    Your browser doesn't support the HTML5 CANVAS tag.

    • Cybersecurity
    • Quantum Information
    • Artificial Intelligence
    • Web Development
    • Cloud Computing
    • GET SOCIAL
    EITCA Academy


    © 2008-2026  European IT Certification Institute
    Brussels, Belgium, European Union

    TOP
    CHAT WITH SUPPORT
    Do you have any questions?
    We will reply here and by email. Your conversation is tracked with a support token.