×
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

LOG IN TO YOUR ACCOUNT

CREATE AN ACCOUNT FORGOT YOUR PASSWORD?

FORGOT YOUR PASSWORD?

AAH, WAIT, I REMEMBER NOW!

CREATE AN ACCOUNT

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

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

What is eulers algorithm

by Emmanuel Udofia / Tuesday, 06 August 2024 / Published in Cybersecurity, EITC/IS/CCF Classical Cryptography Fundamentals, Introduction to public-key cryptography, Number theory for PKC – Euclidean Algorithm, Euler’s Phi Function and Euler’s Theorem

Euler's algorithm, in the context of number theory and public-key cryptography, primarily refers to the Euler's Totient Function (also known as Euler's Phi Function) and Euler's Theorem. These concepts are fundamental in the field of classical cryptography, particularly in the RSA encryption algorithm, which is a widely used public-key cryptosystem.

Euler's Totient Function (Phi Function)

Euler's Totient Function, denoted as φ(n) or sometimes as ϕ(n), is a function that counts the number of integers up to a given integer n that are coprime with n. Two numbers are said to be coprime if their greatest common divisor (gcd) is 1.

Formally, for a positive integer n, the Euler's Totient Function φ(n) is defined as:

    \[ \phi(n) = |\{k \in \mathbb{Z} \mid 1 \leq k \leq n, \gcd(k, n) = 1\}| \]

Where |\cdot| denotes the cardinality of the set, and gcd(k, n) is the greatest common divisor of k and n.

Properties of Euler's Totient Function

1. If n is a prime number p, then:

    \[ \phi(p) = p - 1 \]

This is because a prime number p is coprime with all the integers less than p.

2. If n is a power of a prime p^k, then:

    \[ \phi(p^k) = p^k - p^{k-1} \]

This follows because p^k numbers include p multiples, which are not coprime with p^k.

3. If n is a product of two distinct primes p and q, then:

    \[ \phi(pq) = (p - 1)(q - 1) \]

This is derived from the principle of inclusion-exclusion.

4. For any two coprime integers m and n:

    \[ \phi(mn) = \phi(m) \cdot \phi(n) \]

This property is particularly useful in the calculation of φ(n) for composite numbers.

Example Calculation

Consider n = 12:
– The integers less than 12 are: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11.
– The integers that are coprime with 12 are: 1, 5, 7, 11.

Thus, φ(12) = 4.

Euler's Theorem

Euler's Theorem is a generalization of Fermat's Little Theorem and is a important component in the RSA encryption algorithm. It states that for any integer a and n such that \gcd(a, n) = 1:

    \[ a^{\phi(n)} \equiv 1 \ (\text{mod} \ n) \]

This theorem implies that raising a to the power of φ(n) will yield a result that is congruent to 1 modulo n, provided that a and n are coprime.

Application in RSA Cryptosystem

In the RSA algorithm, two large prime numbers p and q are chosen, and their product n = pq is used as the modulus for both the public and private keys. The totient φ(n) is calculated as:

    \[ \phi(n) = \phi(pq) = (p - 1)(q - 1) \]

A public exponent e is chosen such that 1 < e < \phi(n) and \gcd(e, \phi(n)) = 1. The private key d is then determined as the modular multiplicative inverse of e modulo φ(n):

    \[ ed \equiv 1 \ (\text{mod} \ \phi(n)) \]

Using Euler's Theorem, RSA encryption and decryption can be performed as follows:
– Encryption: c \equiv m^e \ (\text{mod} \ n)
– Decryption: m \equiv c^d \ (\text{mod} \ n)

Where m is the plaintext message, c is the ciphertext, e is the public exponent, and d is the private exponent.

Example of RSA Encryption and Decryption

1. Choose two prime numbers: p = 61, q = 53.
2. Compute n: n = pq = 61 \times 53 = 3233.
3. Compute φ(n): \phi(n) = (p - 1)(q - 1) = 60 \times 52 = 3120.
4. Choose e: Let e = 17, which is coprime with 3120.
5. Compute d: d is the modular inverse of e modulo 3120. Using the Extended Euclidean Algorithm, d = 2753.

To encrypt a message m = 65:

    \[ c \equiv 65^{17} \ (\text{mod} \ 3233) \]

    \[ c = 2790 \]

To decrypt the ciphertext c = 2790:

    \[ m \equiv 2790^{2753} \ (\text{mod} \ 3233) \]

    \[ m = 65 \]

Euclidean Algorithm

The Euclidean Algorithm is a method for finding the greatest common divisor (gcd) of two integers. It is an essential tool in number theory and is used in the computation of the modular inverse in the RSA algorithm.

For two integers a and b where a > b, the Euclidean Algorithm can be expressed as:

1. Divide a by b to obtain the quotient q and the remainder r:

    \[ a = bq + r \]

2. Replace a with b and b with r.
3. Repeat the process until the remainder r is zero. The non-zero remainder at this stage is the gcd of a and b.

Example Calculation

To find the gcd of 252 and 105:
1. 252 = 105 \times 2 + 42 (remainder 42)
2. 105 = 42 \times 2 + 21 (remainder 21)
3. 42 = 21 \times 2 + 0 (remainder 0)

Thus, gcd(252, 105) = 21.

Extended Euclidean Algorithm

The Extended Euclidean Algorithm not only finds the gcd of two integers but also expresses the gcd as a linear combination of the two integers. Specifically, for integers a and b, it finds integers x and y such that:

    \[ \gcd(a, b) = ax + by \]

This is particularly useful in cryptographic applications for finding the modular inverse. If e and \phi(n) are coprime, then there exist integers d and k such that:

    \[ ed + k\phi(n) = 1 \]

Thus, d \equiv e^{-1} \ (\text{mod} \ \phi(n)).

Example Calculation

To find the modular inverse of 17 modulo 3120:
1. Apply the Euclidean Algorithm to 3120 and 17:

    \[ 3120 = 17 \times 183 + 9 \]

    \[ 17 = 9 \times 1 + 8 \]

    \[ 9 = 8 \times 1 + 1 \]

    \[ 8 = 1 \times 8 + 0 \]

2. Back-substitute to express 1 as a combination of 17 and 3120:

    \[ 1 = 9 - 8 \]

    \[ 1 = 9 - (17 - 9) = 2 \times 9 - 17 \]

    \[ 1 = 2 \times (3120 - 183 \times 17) - 17 \]

    \[ 1 = 2 \times 3120 - 367 \times 17 \]

Thus, d = -367 \mod 3120 = 2753.

Practical Considerations

Understanding and implementing Euler's Totient Function, Euler's Theorem, and the Euclidean Algorithm are critical for the secure generation and management of cryptographic keys. These mathematical principles ensure the robustness of encryption algorithms like RSA, which underpin the security of modern digital communications.

Other recent questions and answers regarding Number theory for PKC – Euclidean Algorithm, Euler’s Phi Function and Euler’s Theorem:

  • What does Fermat’s Little Theorem state?
  • What is EEA ?
  • Can public key be used for authentication if the asymmetric relation in terms of complexity in computing keys is reversed?
  • What are eulers theorem used for?
  • What are eulers theorem used for?
  • Can a private key be computed from public key?
  • What is a public key?
  • What is a public key?
  • What is the parameter t of the extended eulers algoritm?
  • What is an extended eulers algorithm?

View more questions and answers in Number theory for PKC – Euclidean Algorithm, Euler’s Phi Function and Euler’s Theorem

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: Number theory for PKC – Euclidean Algorithm, Euler’s Phi Function and Euler’s Theorem
Tagged under: Cybersecurity, EUCLIDEAN ALGORITHM, Euler's Theorem, Number Theory, Public Key Cryptography, RSA
Home » Cybersecurity » EITC/IS/CCF Classical Cryptography Fundamentals » Introduction to public-key cryptography » Number theory for PKC – Euclidean Algorithm, Euler’s Phi Function and Euler’s Theorem » » What is eulers algorithm

Certification Center

USER MENU

  • My Account

CERTIFICATE CATEGORY

  • EITC Certification (105)
  • 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 (Medium publ.)
  • About
  • Contact

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.
Eligibility for EITCA Academy 90% EITCI DSJC Subsidy support
90% of EITCA Academy fees subsidized in enrolment

    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 X
    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) in series of projects since 2007, currently governed by the European IT Certification Institute (EITCI) 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
    EITCA Academy
    • EITCA Academy on social media
    EITCA Academy


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

    TOP

    We value your privacy

    EITCI and its partners use cookies to improve your experience on the EITCA Academy website. Cookies are used to store website specific information on your device to facilitate processing of data for a personalized website experience, such as login to your user account, access to the subsidies, placing enrolment orders in chosen programmes, personalizing your learning experience, etc. Please note that your consent will be valid across all languages subdomains. You can change or withdraw your cookies consent at any time by clicking the Consent Preferences button at the bottom of your screen. We respect your choices and are committed to providing you with a transparent and secure browsing experience, which may be however limited when cookies aren't accepted. Features that won't work without cookies include user account and login, access to a subsidy, placing an enrolment order, accessing personalized learning experience, etc. EITCI and its partners are processing data for the following purposes and special website features: store and/or access learning and certification information on a device, personalized information and content provision, content measurement, audience research, services development, geolocation, device-based identification, personalized user accounts. Privacy Policy
    Customize Consent Preferences
    We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.
    The cookies categorized as Necessary are stored on your browser as they are essential for enabling the basic functionalities of the site.
    To learn more about how Google processes personal information, visit: Google privacy policy

    Necessary

    Always Active

    Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

    Functional

    Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

    Preferences

    Stores personalization choices such as interface preferences.

    External media and social features

    Allows embedded video, social, chat, and external interactive services that may set their own cookies. Keep off until the user chooses these features.

    Analytics

    Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

    Marketing and conversions

    Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

    CHAT WITH SUPPORT
    Do you have any questions?
    Attach files with the paperclip or paste screenshots into the message box (Ctrl+V). Max 5 file(s), 10 MB each.
    We will reply here and by email. Your conversation is tracked with a support token.