×
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

What does the triple bar indicate in modular algebra?

by Emmanuel Udofia / Friday, 02 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 aspect of many classical cryptographic systems, the triple bar symbol (≡) denotes congruence. This symbol is used to indicate that two numbers are congruent modulo a given number. Specifically, if we have two integers a and b and a positive integer n, we write a \equiv b \pmod{n} to mean that a and b leave the same remainder when divided by n, or equivalently, that a - b is divisible by n.

Mathematically, the congruence relation a \equiv b \pmod{n} can be defined as:

    \[ a \equiv b \pmod{n} \iff n \mid (a - b) \]

where n \mid (a - b) means that n divides a - b.

To better understand this, consider an example with specific values. Let a = 17, b = 5, and n = 6. We need to determine if 17 \equiv 5 \pmod{6}. We calculate:

    \[ 17 - 5 = 12 \]

Since 12 is divisible by 6 (i.e., 12 = 6 \times 2), we can say that 17 \equiv 5 \pmod{6}.

This concept is central to modular arithmetic, which is used extensively in various classical ciphers, such as the Caesar cipher and the Vigenère cipher, and plays a important role in modern cryptographic algorithms as well.

Modular Arithmetic in Cryptography

In cryptographic systems, modular arithmetic is often employed to ensure that operations stay within a fixed range, which is particularly useful for encoding and decoding messages. For instance, in the Caesar cipher, each letter in the plaintext is shifted by a fixed number of positions down the alphabet. If the shift causes the letter to go past 'Z', it wraps around to the beginning of the alphabet. This wrapping around is a form of modular arithmetic.

For example, if we use a shift of 3:
– 'A' (the 0th letter) becomes 'D' (the 3rd letter),
– 'B' (the 1st letter) becomes 'E' (the 4th letter),
– and so on,
– 'X' (the 23rd letter) becomes 'A' (the 26th letter modulo 26).

Mathematically, if we denote the position of a letter P as an integer from 0 to 25, the encryption function E for a Caesar cipher with a shift k can be written as:

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

Similarly, the decryption function D is:

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

where C is the position of the ciphertext letter.

Properties of Congruence

The congruence relation a \equiv b \pmod{n} has several important properties that are analogous to the properties of equality. These include:

1. Reflexivity: a \equiv a \pmod{n} for any integer a.
2. Symmetry: If a \equiv b \pmod{n}, then b \equiv a \pmod{n}.
3. Transitivity: If a \equiv b \pmod{n} and b \equiv c \pmod{n}, then a \equiv c \pmod{n}.

Additionally, congruence is compatible with the basic operations of addition, subtraction, and multiplication:
– Addition: If a \equiv b \pmod{n} and c \equiv d \pmod{n}, then a + c \equiv b + d \pmod{n}.
– Subtraction: If a \equiv b \pmod{n} and c \equiv d \pmod{n}, then a - c \equiv b - d \pmod{n}.
– Multiplication: If a \equiv b \pmod{n} and c \equiv d \pmod{n}, then a \cdot c \equiv b \cdot d \pmod{n}.

These properties make modular arithmetic a powerful tool in cryptography, enabling the construction of complex encryption algorithms that are both efficient and secure.

Historical Ciphers and Modular Arithmetic

Historical ciphers often relied on modular arithmetic to transform plaintext into ciphertext. Two notable examples are the Caesar cipher and the Vigenère cipher.

Caesar Cipher

The Caesar cipher, attributed to Julius Caesar, is one of the simplest and most well-known encryption techniques. It involves shifting each letter of the plaintext by a fixed number of positions in the alphabet. This shift can be expressed using modular arithmetic.

For example, with a shift of k = 3:
– 'A' becomes 'D',
– 'B' becomes 'E',
– 'C' becomes 'F',
– and so on.

The encryption function E can be defined as:

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

where P is the position of the plaintext letter in the alphabet (0-indexed).

The decryption function D is:

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

where C is the position of the ciphertext letter.

This use of modular arithmetic ensures that the letters wrap around the alphabet, maintaining a consistent and reversible transformation.

Vigenère Cipher

The Vigenère cipher is a more complex polyalphabetic substitution cipher that uses a keyword to determine the shift for each letter of the plaintext. Each letter in the keyword specifies a different shift, and the shifts are applied cyclically.

For example, with the keyword "KEY" (where 'K' corresponds to a shift of 10, 'E' to 4, and 'Y' to 24):
– The first letter of the plaintext is shifted by 10,
– The second by 4,
– The third by 24,
– and then the pattern repeats.

Mathematically, if the keyword has length m and the plaintext letter at position i is P_i, the encryption function E can be written as:

    \[ E(P_i) = (P_i + K_{i \mod m}) \mod 26 \]

where K_j is the shift corresponding to the j-th letter of the keyword.

The decryption function D is:

    \[ D(C_i) = (C_i - K_{i \mod m}) \mod 26 \]

where C_i is the position of the ciphertext letter.

The Vigenère cipher's use of modular arithmetic allows for a more secure encryption method compared to the Caesar cipher, as the varying shifts make it more resistant to frequency analysis attacks.

Advanced Cryptographic Algorithms

In modern cryptography, modular arithmetic continues to play a critical role, particularly in public-key cryptographic systems such as RSA (Rivest-Shamir-Adleman) and ECC (Elliptic Curve Cryptography).

RSA Algorithm

The RSA algorithm, one of the first public-key cryptosystems, relies heavily on modular arithmetic. It involves the use of two large prime numbers to generate a public and a private key. The encryption and decryption processes are based on modular exponentiation.

Given a plaintext message M, the encryption function E is:

    \[ C = E(M) = M^e \mod n \]

where e is the public exponent and n is the product of the two large primes.

The decryption function D is:

    \[ M = D(C) = C^d \mod n \]

where d is the private exponent.

The security of RSA is based on the difficulty of factoring the large number n into its prime components.

Elliptic Curve Cryptography (ECC)

Elliptic Curve Cryptography (ECC) uses the algebraic structure of elliptic curves over finite fields. The operations on elliptic curves are defined using modular arithmetic, making ECC highly efficient and secure.

For example, the addition of two points P and Q on an elliptic curve over a finite field can be expressed using modular arithmetic operations on the coordinates of the points.

ECC is widely used in modern encryption protocols due to its ability to provide strong security with relatively small key sizes, making it suitable for resource-constrained environments.

The triple bar symbol (≡) in modular arithmetic denotes congruence, a fundamental concept that underpins many classical and modern cryptographic systems. By indicating that two numbers have the same remainder when divided by a given modulus, congruence allows for efficient and secure transformations of data. From the simple Caesar cipher to the sophisticated RSA and ECC algorithms, modular arithmetic is a cornerstone of cryptography, enabling the development of robust encryption methods that protect information in the digital age.

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, Congruence, Cybersecurity, ECC, Modular Arithmetic, RSA, Vigenère Cipher
Home » Cybersecurity / EITC/IS/CCF Classical Cryptography Fundamentals / History of cryptography / Modular arithmetic and historical ciphers » What does the triple bar indicate in modular algebra?

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.

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