Cryptography || Tugas Akhir Praktikum Keamanan Sistem Informasi || Arbian Alex Pritama
Summary
TLDRIn this educational video, the presenter introduces the concepts of cryptography, detailing both classical and modern methods. Classical techniques like Caesar and Vigenère ciphers are briefly mentioned, while modern cryptography is split into symmetric (RC4, DES) and asymmetric (RSA, DSA) types. The tutorial focuses on a practical demonstration, guiding viewers through the installation of Apache and setting up a PHP script for encryption and decryption. The script includes form handling, text processing, and saving encrypted data to a file, showcasing the encryption and decryption process in action.
Takeaways
- 🔐 The video introduces the concept of cryptography, which is the study and practice of securing messages.
- 🔑 It distinguishes between two types of cryptography: classical and modern cryptography.
- 📜 Classical cryptography includes methods like Caesar cipher, transposition cipher, and others.
- 💡 Modern cryptography is divided into symmetric and asymmetric cryptography, with algorithms such as RC4, DES, AES, IDEA for symmetric, and RSA, DSA, and ECC for asymmetric.
- 🛠️ The video demonstrates the installation and setup of a cryptographic tool, likely a web-based application, by installing packages and restarting services.
- 🌐 It provides a walkthrough of accessing the tool's interface through a web browser by navigating to a specific IP address.
- 📝 The script explains the process of encryption using a form in 'awal.php', which takes user input and processes it through 'nkiser.php'.
- 🔢 It details the encryption process, which involves converting text to decimal, performing encryption, and then converting the result back to ASCII.
- 📝 The encrypted text is then saved to a file named 'enkripsi.txt', which is accessible and modifiable with specific permissions.
- 🔄 The video also covers the decryption process in 'akhir.php', which involves reading the encrypted file, decrypting it, and displaying the original message.
- 🔒 The importance of matching encryption and decryption keys ('q' value) is emphasized for successful decryption.
Q & A
What is cryptography?
-Cryptography is the science and art of securing messages.
What are the two types of cryptography mentioned in the script?
-The two types of cryptography mentioned are classical cryptography and modern cryptography.
Can you name some examples of classical cryptography techniques?
-Examples of classical cryptography techniques include Caesar cipher, fine cipher, and Vigenère cipher.
What is the difference between symmetric and asymmetric cryptography?
-In symmetric cryptography, the same key is used for both encryption and decryption, while in asymmetric cryptography, two different keys are used – a public key for encryption and a private key for decryption.
Which algorithms are mentioned in the script for symmetric cryptography?
-The script mentions RC4 and DES as examples of symmetric cryptography algorithms.
What does the script say about the installation process of a package?
-The script describes installing a package using 'apt-get install' and then restarting the service with 'service apache2 restart'.
How does the script explain the encryption process in the 'awal.php' file?
-The 'awal.php' file contains a form for encryption, which takes user input and processes it through a series of steps including converting text to decimal, encrypting it, and then converting it back to ASCII.
What is the purpose of the 'enkripsi.txt' file mentioned in the script?
-The 'enkripsi.txt' file is used to store the encrypted output of the encryption process.
How does the script describe the decryption process in the 'akhir.php' file?
-The 'akhir.php' file is responsible for decryption, where it retrieves the key from 'enkripsi.txt', reads the encrypted data, and performs the decryption process by reversing the steps used in encryption.
What is the significance of the 'q' value in the encryption and decryption process as described in the script?
-The 'q' value is significant as it is used in the encryption and decryption process to modify the text. It must be the same in both processes to ensure the original message can be correctly decrypted.
How does the script guide users to view the results of the encryption and decryption processes?
-The script guides users to view the results by accessing the 'awal.php' and 'akhir.php' files through a web browser and entering the necessary inputs to see the original and encrypted/decrypted messages.
Outlines
🔐 Introduction to Cryptography
The speaker begins by introducing themselves and then proceeds to explain the concept of cryptography, which is the science and art of securing messages. They differentiate between classical and modern cryptography, mentioning techniques such as Caesar cipher, fine cipher, and the Vigenère cipher as examples of classical methods. Modern cryptography is further divided into symmetric and asymmetric cryptography, with examples including RC4, DES, AES, IDEA, and asymmetric algorithms like RSA, DSA, and ECC. The speaker then transitions into a practical demonstration, discussing the installation of Apache and the configuration of a server environment, which involves restarting Apache and checking the IP address. They also mention the files involved in the encryption process, such as 'awal.php', 'dkxr', 'nkxr', and 'enkripsi.html', and describe the initial steps in setting up the encryption interface.
💻 Practical Encryption Process
In this section, the speaker delves into the practical aspects of the encryption process. They discuss the handling of plaintext and the transformation of characters into decimal form. The process involves encryption algorithms that manipulate the decimal values and convert them back into ASCII characters. The speaker explains the use of a loop to iterate over the plaintext, encrypting it, and then storing the encrypted data in a file named 'enkripsi.txt'. They also touch upon the decryption process, where the encrypted text is converted back into its original form using a key. The speaker guides through the steps of setting up a web interface to input text and view the encrypted output, and they mention the importance of file permissions when modifying and executing scripts.
🔑 Decryption and Conclusion
The final paragraph focuses on the decryption process, where the encrypted text is converted back into its original form. The speaker explains the steps involved in decrypting the text, including converting ASCII back to decimal and then using the key to reverse the encryption process. They mention the importance of using the same key for decryption as was used for encryption. The speaker concludes by summarizing the key points discussed in the video and thanks the viewers for their attention. They end with a religious blessing and a sign-off, indicating the end of the video tutorial.
Mindmap
Keywords
💡Cryptography
💡Classical Cryptography
💡Modern Cryptography
💡Symmetric Cryptography
💡Asymmetric Cryptography
💡Encryption
💡Decryption
💡Key
💡ASCII
💡PHP
💡IP Address
Highlights
Introduction to cryptography as the science and art of securing messages.
Differentiation between classical and modern cryptography.
Explanation of classical cryptography methods such as Caesar cipher and Vigenère cipher.
Division of modern cryptography into symmetric and asymmetric cryptography.
Mention of RC4, DES, and IDEA as examples of symmetric cryptography algorithms.
Description of asymmetric cryptography algorithms including RSA, DSA, and ECC.
Instructions on installing and using a specific cryptographic application.
Details on restarting the application to apply changes.
Explanation of how to check the IP address for the application.
Demonstration of accessing and modifying 'awal.php' for encryption interface.
Description of the form in 'awal.php' for text encryption.
Explanation of the process to convert text to decimal for encryption.
Details on encrypting the decimal form and converting it back to ASCII.
Process of saving the encrypted data to an 'enkripsi.txt' file.
Instructions on accessing the encrypted data through a web browser.
Demonstration of entering text and key to see the encryption result.
Description of modifying file permissions to allow reading, editing, and execution.
Explanation of the 'akhir.php' process for decryption.
Details on how the decryption process retrieves the key and encrypted data for decryption.
Description of converting the encrypted ASCII back to the original text.
Final thoughts and conclusion of the presentation with a thank you note.
Transcripts
baik asalamualaikum warahmatullahi
wabarakatuh perkenalkan nama saya ar
alitama eh dengan mm
25506113 jadi pada video kali ini saya
akan menjelaskan tentang kriptografi eh
kriptografi sendiri adalah ilmu dan seni
untuk menjaga keamanan pesan jadi
terdapat dua jenis kriptografi yaitu ada
kriptografi klasik dan kriptografi
modern kriptografi klasik sendiri
terdiri dari Caesar chiper fine chiper
kemudian ada visioner chiper dan
lain-lain Ki untuk yang kriptografi
modern sendiri menjadi eh terbagi
menjadi dua yaitu simetrik dan
asimetrik yang simetriknya itu terdapat
RC rc4 kemudian ada di DS kemudian
Eis kemudian idea Kemudian pada eh
asimetri sendiri ada
a kemudian eh dsa eh DS kemudian
ada
g g kemudian
eh kita lanjutkan pada percobaan jadi e
pada percobaan kali ini kita e yang
pertama-tama harus kita lakukan adalah
menginstal dari
apacya jadi berhubung di sini saya sudah
menginstalnya kita akansung ke
ee ke perintah ini jadi kita akan masuk
ke
EC petisi kemudian Nah kita masuk ke etc
ini di kemudian ap 2 restart jadi kita
di sini akan me-restart kembali APAC 2
kita nah jika rest sudah berhasil kita
eh Exit dulu
kita lihat untuk eh ininya
ip-nya Nah di
sini kita butuh IP Nah di sini ada IP
defaultnya yaitu
10021 kita akan cek dulu untuk IP
address-nya di sini kita akan cek
10.0 Nah di sini ee eh
jika jika apa c2nya sudah direstart dan
sudah berhasil dipasang dia akan e
menampilkan beberapa file dari Ininya
tadi Dari dari com PRnya ini jadi di
sini kita masuk
dulu
ke masuk
ked SL www Nah di sini kita LS Nah di
sini eh terdapat beberapa file yaitu
awal eh Akhir akhir akhir kemudian ada
awal ada dkxr ada nkxr kemudian ada
enkripsi ada
html ini kita akan memodifikasi
untuk kita CL dulu kita akan melihat
untuk yang pertama dulu Jadi kita akan
ee melihat untuk eh
awal.php-nya Nah pada
awal.php di sini yang pertama itu adalah
form untuk enkripsi jadi eh untuk
awal.php ini adalah untuk interface dari
form untuk
enkripsi kemudian
eh dia akan mengambil aksi dari
nkiser.php ini nah kemudian di sini eh
terdapat t yang dia akan menginputkan
teks yang berupa kata-kata jadi
kata-kata ya bukan huruf kemudian di
sini dia akan
ee membuat Q juga q-nya ini bertipe teks
dan eh name-nya sendiri itu adalah ke
jadi di sini ke-nya itu berupa angka
yang eh maxnya itu adalah du jadi
maksimalnya itu adalah dua angka jadi
tidak bisa t tiga angka seperti 100 1000
itu tidak bisa jadi maksimal angknya
adalah 99 Nah di sini juga ada eh value
untuk kirim E dan ulangi di sini
masing-masing yaitu kirim itu submit
Kemudian untuk reset itu ulangi J kita
nanti akan e langsung ke ininya saja
jadi kita jelasin dulu kemudian untuk
yang selanjutnya itu kita akan masuk ke
niser.php kita akan masuk ke
[Musik]
nah pada nphp ini dia akan mengambil e
kalimat e kata ini sebagai kalimatnya
kemudian itu dia akan mengambilnya dan
kemudian di sini ada
perulangan pada baris selanjutnya ini
baris untuk
mengubahnya ke bentuk desimal nah
kemudian selanjutnya ini dia akan
memprosesinyaah kalau prosespi itunya
inian berbeda dengan deskripsi yang
deskripsi yang eh q-nya nanti akan
dikurang nah kemudian selanjutnya adalah
mengubah desimal ke Asci jadi ini kan
SCI ke desimal kemudian dia akan
melakukan proses enkripsi dan kemudian
mengubahnya dari desimal ke SCI
lagi sini ee dia akan mengeluarkan
kalimat asli dari perulangan eh
perulangan ini perulangan kalimatnya ini
kemudian ee hasil enkrips ini juga akan
ee di ditampilkan dari perurangan for
ini kemudian dia akan menyimpan datanya
di
encripsi.xt tadi enripsi.txt
iniah sama saja Kemudian
eh kita akan masuk ke enripsi doekinnya
nanti nanti setelah kita masuk ke
ininya browsernya kita coba eh untuk web
browsernya sendiri Kita akan masuk ke
102015 kemudian
awalp Nah di sini untuk web browsernya
sendiri Eh sudah tampil yaitu Plex dan
key-nya jadi plnya ini kita akan membuat
Seperti contohnya Kal saja
k kemudian ke-nya ini Kita masukin
l kita kirim n Maka hasilnya akan
seperti ini kalimat aslinya adalah
kalimat kemudian hasil enkripsinya
adalah PF eh pfq NRP nah seperti ini
kemudian kita akan cek ke eh enkripsi
ini encripsi.x-nya nanti jadi kita masuk
ke
nanoripsi
txt nah dapat dilihat di sini proses
enkripsinya akan disimpan di sini di eh
enripsi.
tadi
Nah jadi jika kita belum membuat proses
E enp ini kita akan e buat
dulu ini hanya sebagai contoh nah jika
sudah kita kosongkan saja kita terlebih
dahulu dan kembalikan sini kalau kita LS
dia akan
menilkan ini nah yang di mana untuk
file enkpsi.xnya ini itu belum di eh
diubah jadi dia masih hanya doang jadi
di sini kita akan mengubah menggunakan
CH
mod CH
777 Nah di sini jika sudah kita ubah ke
77 ini 77 ini Adah bertanda di akan ee
bisa membaca kemudian bisa mengedit dan
mengeksekusinya dia antara grup user dan
ers-nya dia bisa
semua nah jika sudah kita akan langsung
ke
ee berikutnya yaitu
akhir.php kita masuk ke
akhir.php Nah di sini ee akhir.php Ini
adalah
untukkripsi nah yang di mana ehnya itu
adal mengambil file dari
e ini kemudian dia akan
meng
dan mengut jadi tidak adanya
tadi membuatnya saja yang di mana
seperti yang tadi
itunya
iniuk
yang tadi n Kisar itu dia terdapat plnya
tapi untuk yang deisarnya ini
tidak ke sudah kita akan masuk
ke Nano eh
dksr Nah di sini eh untuk DK sendiri
atau proses deskripsinya ini dia akan e
mengambil key dari
enkpsi tadi jadi dia akan mengambil eh
data data yang disimpan di enps. nanti
dan kemudian dia akan membuka file hasil
enkripsinya dan yang di
mana dia
akan untuk
dariyaadi Kemudian untuk yang
selanjutnya ini terdapat perulangan juga
di sini Untuk Untuk bar selanjutnya ini
ada mengubah hasil dari SCI
keah kemudi UNT yang selanjutnya ini
pros
deskpi enkripsi tadi sudah saya jelaskan
yaitu dia akan dikurang dari q-nya ini
berbeda dengan enkripsi yang ditambah
dia kudan untuk yang selanjutnya adalah
mengubah desimal ke S nah kemudi di sini
e dia akan menampilkan
kalimatipernya dari perulangan
ini nah kemudian hasil deskripsinya ini
melalui perulangan
ini jika sudah kita
akan bya itu dari
ee Ini
tadi kita ubah
ke
PHP nah di mana Eh untuk proses
dekripsinya tadi q-nya ini harus sama
dengan proses dari enkripsinya yang di
mana pada enkripsi tadi saya memasukkan
q-nya itu adalah 5 jadi kita akan
memasukkan di sini 5 J harus sama tidak
boleh beda
nah dia akan e mengeluarkan eh dari
kalimatiper tnya ini e proses
enkripsinya dari yang pertama tadi
kemudian menjadi hasil deskripsinyau
kalimat sama seperti proses enkripsi P
pertama kali tadi jadi
kalimat kalimat asli dari yang enkripsi
tadi adalah kalimat kemudian dia akanp
menjadiah kemud untuk yang EE
deskripsinya dia akan menyampaikan
chiper teksnya tadi yaitu proses hasil
dari enkripsinya kemudian akan diubah
menjadi hasil deskripsi menjadi kalimat
asli yaitu kalimat
mungkin ee cukup itu yang saya e
sampaikan kurang dan lebihnya saya mohon
maaf saya akhiri wasalamualaikum
warahmatullahi wabarakatuh Terima kasih
Посмотреть больше похожих видео
What is Cryptography? | Introduction to Cryptography | Cryptography for Beginners | Edureka
Symmetric and Asymmetric Cryptography - SY0-601 CompTIA Security+ : 2.8
How prime numbers protect your privacy #SoME2
Cryptography
CRYPTOGRAPHY | Encrypting & Decrypting | Caesar Cipher | Modulo Operator | TAGALOG-ENGLISH
Memahami Enkripsi!
5.0 / 5 (0 votes)