Cesar & Vigenere Encryption Matlab Cesar & Vigenere Encryption guruh.fajar@research.dinus.ac.id
Basic Knowledge Plaintext Algorithm & Key Ciphertext Encryption Process Decryption Process
Implementation Matlab Plaintext Algorithm & Key Ciphertext Encryption Process Decryption Process Input Text / Data KEY ALGORITHM Transformation Output Decryption Process Encryption Process
Inputan plaintext & key txt='apa' key=1; Input Text / Data KEY ALGORITHM Transformation Output Encryption Process
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
Enkripsi hasil_modulus=mod((y+key),26); Encryption Process Input Text / Data KEY ALGORITHM Transformation Output Encryption Process
Transform angka --> abjad if ( (hasil_modulus < 0) | (hasil_modulus > 25) ), error('Integer out of range 0 - 26'); end; cipher=char(hasil_modulus + 'a') Input Text / Data KEY ALGORITHM Transformation Output Encryption Process