• No results found

lec 5-Cryptography

N/A
N/A
Protected

Academic year: 2020

Share "lec 5-Cryptography"

Copied!
17
0
0

Loading.... (view fulltext now)

Full text

(1)

Cryptography

Cryptography

polyalphabetic cipher

(2)

Polyalphabetic Ciphers

another approach to improving security is to use

multiple cipher alphabets

called polyalphabetic substitution ciphers

makes cryptanalysis harder with more alphabets to

guess and flatter frequency distribution

use a key to select which alphabet is used for each

letter of the message

use each alphabet in turn

(3)

Vigenère Cipher

simplest polyalphabetic substitution cipher is

the Vigenère Cipher

effectively multiple caesar ciphers

key is multiple letters long K = k1 k2 ... kd ith letter specifies ith alphabet to use

use each alphabet in turn

(4)

Example

write the plaintext out

write the keyword repeated above it

use each key letter as a caesar cipher key encrypt the corresponding plaintext lettereg using keyword deceptive

(5)

Security of Vigenère Ciphers

have multiple ciphertext letters for each

(6)

Autokey Cipher

ideally want a key as long as the messageVigenère proposed the autokey cipher

with keyword is prefixed to message as key

knowing keyword can recover the first few letters use these in turn on the rest of the message

but still have frequency characteristics to attack eg. given key deceptive

(7)

One-Time Pad

if a truly random key as long as the message is

used, the cipher will be secure

called a One-Time pad

is unbreakable since ciphertext bears no

statistical relationship to the plaintext

since for any plaintext & any ciphertext there

exists a key mapping one to other

can only use the key once though

(8)

Transposition Ciphers

now consider classical transposition or

permutation ciphers

these hide the message by rearranging the

letter order

without altering the actual letters usedcan recognise these since have the same

(9)

Rail Fence cipher

write message letters out diagonally over a

number of rows

then read off cipher row by roweg. write message out as:

m e m a t r h t g p r y e t e f e t e o a a t

giving ciphertext

(10)

Columnar Transposition

Definition: Write the message in rows of a fixed length, and then read out again column by

column. The columns are chosen in some

scrambled order. Both the length of the rows and the permutation of the columns are

(11)

Columnar Transposition Cipher

The columnar transposition cipher is a fairly simple, easy to

implement cipher. It is a transposition cipher that follows a simple rule for mixing up the characters in the plaintext to form the ciphertext.

Although weak on its own, it can be combined with other

ciphers, such as a substitution cipher, the combination of

(12)

• The key for the columnar transposition cipher is a keyword e.g. GERMAN. The row length that is used is the same as the length of the keyword. To encrypt a piece of text, e.g.

• defend the east wall of the castle we write it out in a special way in a number of rows (the keyword here is GERMAN):

• In the above example, the plaintext has been padded so that it neatly fits in a rectangle. This is known as a regular columnar transposition. An irregular columnar transposition leaves these characters blank, though this makes decryption slightly more difficult. The columns are now reordered such that the letters in the key word are ordered alphabetically.

nalcxehwttdttfseeleedsoaxfeahl

(13)

Key Columnar Transposition

Example: Let the key word be: ZEBRA.

The message:

EODAEASRENEIELORCEECWDVFT.

Z E B R A

W E A R E

D I S C O

V E R E D

F L E E A

(14)

Row Transposition Ciphers

a more complex scheme

write letters of message out in rows over a

specified number of columns

then reorder the columns according to some

key before reading off the rows

Key: 3 4 2 1 5 6 7 Plaintext: a t t a c k p o s t p o n e d u n t i l t w o a m x y z

(15)

Product Ciphers

ciphers using substitutions or transpositions are not

secure because of language characteristics

hence consider using several ciphers in succession to

make harder, but:

two substitutions make a more complex substitution two transpositions make more complex transposition

but a substitution followed by a transposition makes a new

much harder cipher

(16)

Steganography

an alternative to encryptionhides existence of message

using only a subset of letters/words in a longer

message marked in some way

using invisible inkPin punctures

has drawbacks

(17)

Summary

have considered:

classical cipher techniques and terminologymonoalphabetic substitution ciphers

cryptanalysis using letter frequenciesPlayfair ciphers

polyalphabetic cipherstransposition ciphersproduct ciphers

References

Related documents

Personal Paperless Document Manager (PPDM) enables users to capture, combine, convert and share the three most prominent document types: paper, PDFs and Microsoft ®..

CloudView can also aid IYPs in expanding their advertisers’ exposure to vertical directories and social networks while generating more leads through upselling and cross-selling

Security Cryptography algorithms Public key (e.g., RSA) Secret key (e.g., DES) Message digest (e.g., MD5) Security services Authentication Privacy Message integrity Plaintext

[r]

In this project control of field oriented induction motor is discussed and the same is implemented in the MATLAB simulation.The output of speed, stator currents, voltage input to

In our study 25 sutureless self-anchoring, Perceval S, (LivaNova Biomedica Cardio Srl, Sallugia, Italy) valves are compared with 25 conventional biological stented pros-

Municipal planning staff, land-use board members, and elected officials in five communities on the rapidly-growing edge of metropolitan Boston (Bellingham, Framingham,

The effect of a disease management intervention on quality and outcomes of dementia care: a randomized, controlled trial.[see comment][summary for patients in Ann Intern Med.. A