انت هنا الان : شبكة جامعة بابل > موقع الكلية > نظام التعليم الالكتروني > مشاهدة المحاضرة

L5 Substitution cipher systems

الكلية كلية العلوم للبنات     القسم قسم الحاسبات     المرحلة 4
أستاذ المادة محمد عبد الله ناصر الزبيدي       06/12/2012 14:34:27
2.3 SUBTITUTION CIPHERS.
2.3.1 SIMPLE SUBTTTUION CIPHERS:
In simple substitution (or monoalphabetic) ciphers, each character of the plaintext is replaced with a corresponding character of ciphertext. A single one-to-one mapping function (ƒ) from plaintext to ciphertext character is used to encrypt the entire message using the same key (k); such that
Ek(M)=f(m1)f(m2)….. f(mN)=C
Where N: is the length of the message.
M: is plaintext message given by M= (m 1, m2 ...... mN).
C: is ciphertext message given by C=(c1, c2,….,cN)
Simple substitution ciphers are often called monoalphabetic ciphers, figure (2-2) represents two concentric rings of which the outer is free to rotate and represent the ciphertext while the inner one represent the plaintext. If the outer one is moved to a certain position then the plaintext letters could be enciphered by replacing each letter by the one out side it. The letter frequency distribution is preserved in the ciphertext. Several forms of f can be used in simple substitution, such as:
? Shifted alphabet (Caesar cipher):
f(mi) - (mi + k) mod n
Where k is the number of positions to be shifted, mi is a single character of the
alphabet, and n is the size of the alphabet.
If k = 3 then we can encrypt the following message as:

المادة المعروضة اعلاه هي مدخل الى المحاضرة المرفوعة بواسطة استاذ(ة) المادة . وقد تبدو لك غير متكاملة . حيث يضع استاذ المادة في بعض الاحيان فقط الجزء الاول من المحاضرة من اجل الاطلاع على ما ستقوم بتحميله لاحقا . في نظام التعليم الالكتروني نوفر هذه الخدمة لكي نبقيك على اطلاع حول محتوى الملف الذي ستقوم بتحميله .