Test 1 Study Guide

studied byStudied by 1 person
0.0(0)
Get a hint
Hint

Vigenere Cipher Hand Encrpt

1 / 15

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

16 Terms

1

Vigenere Cipher Hand Encrpt

  • Choose a Keyword: Repeat the keyword until it matches the length of the plaintext.

  • Convert Letters to Numbers: Assign a number to each letter (A=0, B=1, ..., Z=25).

  • Shift Letters: For each letter in the plaintext, shift it by the number corresponding to the keyword letter.

  • Convert Numbers Back to Letters: Convert the resulting numbers back to letters.

<ul><li><p><strong>Choose a Keyword</strong>: Repeat the keyword until it matches the length of the plaintext.</p></li><li><p><strong>Convert Letters to Numbers</strong>: Assign a number to each letter (A=0, B=1, ..., Z=25).</p></li><li><p><strong>Shift Letters</strong>: For each letter in the plaintext, shift it by the number corresponding to the keyword letter.</p></li><li><p><strong>Convert Numbers Back to Letters</strong>: Convert the resulting numbers back to letters.</p></li></ul>
New cards
2

Vigenere Cipher Hand Decrypt

  • Repeat the Keyword: As in encryption, match the length of the ciphertext with the repeated keyword.

  • Convert Letters to Numbers: Assign numbers to both the ciphertext and the keyword.

  • Reverse the Shift: Subtract the keyword number from the ciphertext number for each letter.

  • Convert Numbers Back to Letters: Convert the resulting numbers back to letters.

<ul><li><p><strong>Repeat the Keyword</strong>: As in encryption, match the length of the ciphertext with the repeated keyword.</p></li><li><p><strong>Convert Letters to Numbers</strong>: Assign numbers to both the ciphertext and the keyword.</p></li><li><p><strong>Reverse the Shift</strong>: Subtract the keyword number from the ciphertext number for each letter.</p></li><li><p><strong>Convert Numbers Back to Letters</strong>: Convert the resulting numbers back to letters.</p></li></ul>
New cards
3

Substitution

Definition: A cryptographic technique where elements of the plaintext are systematically replaced with other symbols

New cards
4

Transposition

Definition: A cryptographic technique where the positions of elements in the plaintext are shifted according to a regular system.

New cards
5

Modular Arithmetic

Modular arithmetic is a system of arithmetic for integers, where numbers "wrap around" after they reach a certain value, known as the modulus.

Notation
  • a mod  n means the remainder when a is divided by n.

Properties
  1. Addition: (a+b) mod n = [(a mod n)+(b mod n)] mod n

  2. Subtraction: (a-b) mod n = [(a mod n)-(b mod n)] mod n

  3. Multiplication: (axb) mod n = [(a mod n)x(b mod n)] mod n

New cards
6

Modular Arithmetic Addition Examples

7+5mod10

7+5=12

12 mod 10=2

New cards
7

Modular Arithmetic Subtraction Examples

7-5 mod 10

7-5=2

2 mod 10=2

New cards
8

Modular Arithmetic Multiplication Examples

7×5 mod 0

7×5=35

35 mod 10=5

New cards
9

Euclid’s Algorithm

Euclid's algorithm is a method for finding the greatest common divisor (GCD) of two integers. The GCD of two numbers is the largest number that divides both of them without leaving a remainder. This algorithm is fundamental in number theory and is widely used in cryptography, particularly in public-key algorithms like RSA.

  • Given two numbers a and b (where a>b), divide a by b and find the remainder r.

  • Replace a with b and b with r

  • Repeat the process until r becomes 0. The non-zero remainder at this point is the GCD of a and b.

New cards
10

Euclid’s Algorithm Examples

  • a=252, b=105

    • 252á105=2 remainder 42

    • So, a=105 and b=42

  • a=105, b=42

    • 105á42=2 remainder 21

    • So, a=42 and b=21

  • a=42, b=21

    • 42á21 remainder 0

    • So, a=21 and b=0

<ul><li><p>a=252, b=105</p><ul><li><p>252á105=2 remainder 42</p></li><li><p>So, a=105 and b=42</p></li></ul></li><li><p>a=105, b=42</p><ul><li><p>105á42=2 remainder 21</p></li><li><p>So, a=42 and b=21</p></li></ul></li><li><p>a=42, b=21</p><ul><li><p>42á21 remainder 0</p></li><li><p>So, a=21 and b=0</p></li></ul></li></ul>
New cards
11

Euclid’s Algorithm Formula

knowt flashcard image
New cards
12

Additive Inverse

A number that, when added to a, yields zero. In the context of modular arithmetic, the additive inverse of a modulo n is a number b such that a+b≡0 mod n, or b≡−a mod n

Example

For a=3 in modulo 7 arithmetic: b≡−3 mod  7 b≡4 mod 7 So, the additive inverse of 3 modulo 7 is 4.

New cards
13

Multiplicative Inverse

To find the multiplicative inverse of a modulo n, a and n must be coprime (i.e., GCD(a,n)=1. You can find the multiplicative inverse using the Extended Euclidean Algorithm.

New cards
14

Totient Function

  1. Find the prime factors of number, for 21 they would be 7 and 3.

  2. List the numbers each of the prime factors goes into leading up to number. 7 would be 7 and 14, and 3 would be 3, 6, 9, 12, 15, and 18.

  3. List all the numbers from 1 to the number, and cross out the numbers that were listed under the prime factors factors.

  4. Count the remaining numbers and that is the totient factor.

New cards
15

Feistel Cipher

Feistel ciphers are symmetric encryption schemes used in block ciphers. They divide the block into two halves and perform multiple rounds of encryption and decryption using a key-derived function. The structure of a Feistel cipher allows for efficient decryption using the same algorithm as encryption but with the subkeys used in reverse order.

New cards
16

How to Encrypt Feistel Cipher

  1. Divide plaintext into two halves, L0 and R0, and determine the number of rounds

  2. For each round run the R0 through the function and xor with the left side to make R1, R0 goes to the left and becomes L1

  3. After all the rounds are done swap the left and right halves.

<ol><li><p>Divide plaintext into two halves, L0 and R0, and determine the number of rounds</p></li><li><p>For each round run the R0 through the function and xor with the left side to make R1, R0 goes to the left and becomes L1</p></li><li><p>After all the rounds are done swap the left and right halves.</p></li></ol>
New cards

Explore top notes

note Note
studied byStudied by 34 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 8 people
Updated ... ago
4.0 Stars(1)
note Note
studied byStudied by 6 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 6 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 170 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 7 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 29 people
Updated ... ago
4.0 Stars(1)
note Note
studied byStudied by 10752 people
Updated ... ago
4.8 Stars(24)

Explore top flashcards

flashcards Flashcard206 terms
studied byStudied by 8 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard25 terms
studied byStudied by 25 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard109 terms
studied byStudied by 7 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard60 terms
studied byStudied by 55 people
Updated ... ago
4.0 Stars(2)
flashcards Flashcard96 terms
studied byStudied by 15 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard148 terms
studied byStudied by 226 people
Updated ... ago
5.0 Stars(2)
flashcards Flashcard84 terms
studied byStudied by 14 people
Updated ... ago
5.0 Stars(3)
flashcards Flashcard35 terms
studied byStudied by 9 people
Updated ... ago
5.0 Stars(2)