Skip to content

vincentbudianto/Crypto-Helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Tugas Kecil 1 IF4020 Kriptografi

Crypto Helper

Deskripsi Singkat

Membuat sebuah program yang mengimplementasikan:

  1. Vigenere Cipher standard (26 huruf alfabet)
  2. Varian Vigenere Cipher (26 huruf alfabet):
    • Full Vigenere Cipher
    • Auto-key Vigenere Cipher
  3. Extended Vigenere Cipher (256 karakter ASCII)
  4. Playfair Cipher (26 huruf alfabet)
  5. Super enkripsi: Vigenere Cipher standard + cipher transposisi (bebas). Jelaskan cipher transposisi yang dibuat.
  6. Affine cipher (26 huruf alfabet)
  7. Hill cipher (26 huruf alfabet)
  8. Bonus: Enigma cipher (26 huruf alfabet)

dengan spesifikasi sebagai berikut:

  1. Program dapat menerima pesan berupa file sembarang (file text maupun file biner) atau pesan yang diketikkan dari papan-ketik.
  2. Program dapat mengenkripsi plainteks. Khusus untuk Vigenere Cipher dengan 26 huruf alfabet dan Playfair Cipher dengan 26 huruf alfabet, program hanya mengenkripsi karakter alfabet saja. Angka, spasi, dan tanda baca dibuang.
  3. Program dapat mendekripsi cipherteks menjadi plainteks semula.
  4. Untuk pesan berupa text, program dapat menampilkan plainteks dan cipherteks di layar.
  5. Untuk plainteks berupa text, cipherteks dapat ditampilkan ke layar dalam bentuk:
    • tanpa spasi
    • dalam kelompok 5-huruf
  6. Program dapat menyimpan cipherteks ke dalam file.
  7. Kunci dimasukkan oleh pengguna. Panjang kunci bebas.
  8. Untuk enkripsi plainteks sembarang file (khusus untuk extended Vigenere Cipher), setiap file diperlakukan sebagai file of bytes. Program membaca setiap byte di dalam file (termasuk byte-byte header file) dan mengenkripsinya. Hanya saja file yang sudah terenkripsi tidak bisa dibuka oleh program aplikasinya karena header file ikut terenkripsi. Namun dengan mendekripsinya kembali maka file tersebut dapat dibuka oleh aplikasinya.

Tabel Fitur

No Feature Success (✔) Fail (❌) Details
1 Vigenere Cipher
2 Full Vigenere Cipher
3 Auto-Key Vigenere Cipher
4 Extended Vigenere Cipher
5 Playfair Cipher perlu dilakukan post-processing untuk membuang huruf X tidak terpakai
6 Super Encryption
7 Affine Cipher
8 Hill Cipher (matriks 3 x 3)
9 Enigma Cipher ring setting tidak dapat diubah

Screenshot

Front page & Theme

  • Light mode light front page
  • Dark mode dark front page

Page

  • Encryption encryption page
  • Decryption decryption page
  • Enigma machine enigma machine page

Vigenere Cipher

  • Encryption input inputEncryption
  • Encryption output outputEncryption
  • Decryption input inputDecryption
  • Decryption output outputDecryption

Full Vigenere Cipher

  • Encryption input inputEncryption
  • Encryption output outputEncryption
  • Decryption input inputDecryption
  • Decryption output outputDecryption

Auto-Key Vigenere Cipher

  • Encryption input inputEncryption
  • Encryption output outputEncryption
  • Decryption input inputDecryption
  • Decryption output outputDecryption

Extended Vigenere Cipher (using image file)

  • Input file inputFile
  • Encryption file input inputEncryption
  • Encryption encryption
  • Encrypted file download outputEncryption
  • Encrypted file encryptedFile
  • Decryption file input inputDecryption
  • Decryption decryption
  • Decryption file download outputDecryption
  • Decrypted File decryptedFile

Playfair Cipher

  • Encryption input inputEncryption
  • Encryption output outputEncryption
  • Decryption input inputDecryption
  • Decryption output outputDecryption

Super Cipher (using text file)

  • Encryption input inputEncryption
  • Encryption output outputEncryption
  • Encryption download downloadEncryption
  • Decryption input inputDecryption
  • Decryption output outputDecryption
  • Decryption download downloadDecryption
  • Input files, encrypted files and decrypted files files

Affine Cipher

  • Encryption input inputEncryption
  • Encryption output outputEncryption
  • Decryption input inputDecryption
  • Decryption output outputDecryption

Hill Cipher

  • Encryption input inputEncryption
  • Encryption output outputEncryption
  • Decryption input inputDecryption
  • Decryption output outputDecryption

Enigma Cipher

  • Encryption input inputEncryption
  • Encryption output outputEncryption
  • Decryption input inputDecryption
  • Decryption output outputDecryption

Sources


About

IF4020-Kriptografi - 2020
Teknik Informatika 2017

13517020 - T. Antra Oksidian Tafly
13517137 - Vincent Budianto