Presentation is loading. Please wait.

Presentation is loading. Please wait.

Cesar & Vigenere Encryption

Similar presentations


Presentation on theme: "Cesar & Vigenere Encryption"— Presentation transcript:

1 Cesar & Vigenere Encryption
Matlab Cesar & Vigenere Encryption

2 Basic Knowledge Plaintext Algorithm & Key Ciphertext
Encryption Process Decryption Process

3 Implementation Matlab
Plaintext Algorithm & Key Ciphertext Encryption Process Decryption Process Input Text / Data KEY ALGORITHM Transformation Output Decryption Process Encryption Process

4 Inputan plaintext & key
txt='apa' key=1; Input Text / Data KEY ALGORITHM Transformation Output Encryption Process

5 Transform abjad --> angka
if ( (txt < 'a') | (txt > 'z') ), error('Text character out of range a-z'); end; y=txt - 'a'; Input Text / Data KEY ALGORITHM Transformation Output Encryption Process

6 Enkripsi hasil_modulus=mod((y+key),26); Encryption Process Input
Text / Data KEY ALGORITHM Transformation Output Encryption Process

7 Transform angka --> abjad
if ( (hasil_modulus < 0) | (hasil_modulus > 25) ), error('Integer out of range '); end; cipher=char(hasil_modulus + 'a') Input Text / Data KEY ALGORITHM Transformation Output Encryption Process


Download ppt "Cesar & Vigenere Encryption"

Similar presentations


Ads by Google