×
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 7 and 12 equivalent in mode 5 operation

by Emmanuel Udofia / Saturday, 10 August 2024 / Published in Cybersecurity, EITC/IS/CCF Classical Cryptography Fundamentals, History of cryptography, Modular arithmetic and historical ciphers

In the context of modular arithmetic, which is a fundamental concept in classical cryptography, the question of whether the numbers 7 and 12 are equivalent in mode 5 operation can be addressed by examining their equivalence under modulo 5.

Modular arithmetic is a system of arithmetic for integers, where numbers "wrap around" upon reaching a certain value, the modulus. In this case, the modulus is 5. The notation "a ≡ b (mod m)" is used to express that a and b are congruent modulo m, meaning that when a is divided by m, it leaves the same remainder as when b is divided by m.

To determine if 7 and 12 are equivalent in mode 5, we need to compute the remainders when each number is divided by 5.

1. Calculating the Remainder of 7 Modulo 5:
– When 7 is divided by 5, the quotient is 1 and the remainder is 2.
– This can be written as: 7 = 5 * 1 + 2.
– Hence, 7 ≡ 2 (mod 5).

2. Calculating the Remainder of 12 Modulo 5:
– When 12 is divided by 5, the quotient is 2 and the remainder is also 2.
– This can be written as: 12 = 5 * 2 + 2.
– Hence, 12 ≡ 2 (mod 5).

Since both 7 and 12 leave the same remainder (2) when divided by 5, they are congruent modulo 5. Therefore, in mode 5 operation, 7 and 12 are equivalent. This can be formally stated as:

    \[ 7 ≡ 12 \, (\text{mod} \, 5) \]

Didactic Value and Historical Context

Understanding modular arithmetic is important for grasping many classical cryptographic techniques. Historically, modular arithmetic has been used in various cryptographic systems, including the famous Caesar cipher and the more complex Vigenère cipher.

Caesar Cipher
The Caesar cipher is one of the simplest and most well-known encryption techniques, attributed to Julius Caesar, who reportedly used it to communicate with his officials. It is a substitution cipher where each letter in the plaintext is shifted a certain number of places down or up the alphabet. For example, with a shift of 3:

– Plaintext: A B C D E
– Ciphertext: D E F G H

The encryption can be mathematically expressed using modular arithmetic. Let each letter be represented by its position in the alphabet (A = 0, B = 1, …, Z = 25). The encryption function can be defined as:

    \[ E(x) = (x + k) \mod 26 \]

where x is the position of the letter in the alphabet and k is the shift. For decryption, the function is:

    \[ D(x) = (x - k) \mod 26 \]

Vigenère Cipher
The Vigenère cipher, developed in the 16th century, is a method of encrypting alphabetic text by using a simple form of polyalphabetic substitution. A keyword is repeated to match the length of the plaintext, and each letter of the plaintext is shifted according to the corresponding letter of the keyword. The Vigenère cipher can be broken down into a series of Caesar ciphers.

For example, if the keyword is "KEY" and the plaintext is "HELLO":
– The keyword repeated to match the length of the plaintext: KEYKE
– The shift for each letter: K (10), E (4), Y (24)

Encryption is performed as follows:
– H (7) + K (10) = R (17)
– E (4) + E (4) = I (8)
– L (11) + Y (24) = J (9)
– L (11) + K (10) = V (21)
– O (14) + E (4) = S (18)

Thus, the ciphertext is "RIJVS".

Practical Examples in Modern Cryptography

In modern cryptography, modular arithmetic is foundational for algorithms such as RSA and Diffie-Hellman key exchange.

RSA Algorithm
RSA (Rivest-Shamir-Adleman) is a widely used public-key cryptosystem that relies on the difficulty of factoring large composite numbers. The RSA algorithm involves key generation, encryption, and decryption processes, all of which use modular arithmetic.

Key generation:
1. Choose two distinct large prime numbers p and q.
2. Compute n = pq and \phi(n) = (p-1)(q-1).
3. Choose an integer e such that 1 < e < \phi(n) and \gcd(e, \phi(n)) = 1.
4. Determine d as d \equiv e^{-1} \mod \phi(n).

The public key is (e, n) and the private key is (d, n).

Encryption:

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

where m is the plaintext message and c is the ciphertext.

Decryption:

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

Diffie-Hellman Key Exchange
The Diffie-Hellman key exchange protocol allows two parties to securely share a secret key over a public channel. It relies on the difficulty of computing discrete logarithms in a finite field, another application of modular arithmetic.

1. Both parties agree on a large prime p and a base g.
2. Each party selects a private key (a for Alice and b for Bob).
3. Alice computes A = g^a \mod p and Bob computes B = g^b \mod p.
4. They exchange the values of A and B.
5. Alice computes the shared secret as s = B^a \mod p.
6. Bob computes the shared secret as s = A^b \mod p.

Both parties now share the secret s.

The equivalence of 7 and 12 in mode 5 operation is a straightforward application of modular arithmetic, demonstrating that both numbers leave the same remainder when divided by 5. This concept is not only fundamental in classical cryptography but also underpins many modern cryptographic algorithms and protocols. Understanding modular arithmetic enables the comprehension of more complex cryptographic systems and their security properties.

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: History of cryptography (go to related lesson)
  • Topic: Modular arithmetic and historical ciphers (go to related topic)
Tagged under: Caesar Cipher, Cryptography, Cybersecurity, Diffie-Hellman, Modular Arithmetic, RSA
Home » Cybersecurity / EITC/IS/CCF Classical Cryptography Fundamentals / History of cryptography / Modular arithmetic and historical ciphers » Are 7 and 12 equivalent in mode 5 operation

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.

    • Web Development
    • Cloud Computing
    • Quantum Information
    • Cybersecurity
    • Artificial Intelligence
    • 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.