Download presentation
Presentation is loading. Please wait.
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
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.