SlideShare une entreprise Scribd logo
1  sur  10
PAF-Karachi Institute of Economics & Technology




                 Final Project Report




Project: Encrypter/Decrypter

              Course: Network Security
                     C.Id:55911
            Instructor: Ma’m Seema Ansari




Group Members:
   Salman Khaliq Bajwa (3746)
   Pawan Khan          (4236)




                                                        1
DEDICATION


                               This report is dedicated to



                                     Our Parents,



     Whose love, affection and support helped s in bringing our work to this level of
accomplishments; we are also thankful to them for educating us for unconditional support
   and encouragement to pursue our interests, even when the interest went beyond the
 boundaries of field and scope. Without their support and kindness this work would not
                                   have been possible.




                                                                                         2
ACKNOWLEDEMENT


                 Praise to Allah the most beneficent and the most merciful



We are grateful to our project advisor Ma’m Seema Ansari, for enlightening us with her
precious knowledge and vast experience to benefit us in the future. We also like to thank
our teachers and lab assistants for their assistance and support.

We would also thank with all gratitude and depth of our hearts to our parents who helped
us not only financially but with integrity too and support us in all our hardships. Finally
our sincere thanks to our institute PAF-KIET, for providing us the opportunity to gave us
the strength to undertake this project.

Special thanks to all our fellows and friends who lend us a hand throughout the project’s
each phase.

We pray this effort may prove to be the beginning of new era, a era in which Science and
Technology may make great progress in Pakistan and Pakistan may become a part of the
developed nations.

Thank you.




                                                                                          3
Table of Contents
Encrypter/Decrypter ..........................................................................................................................5
Objective: ..........................................................................................................................................6
Introduction: .....................................................................................................................................6
What is encryption? ...........................................................................................................................6
Why do we need it? ...........................................................................................................................6
What is Decryption?...........................................................................................................................7
Description: .......................................................................................................................................7
   1.      Ceaser Cipher:.........................................................................................................................7
   2.      Transposition Cipher: ..............................................................................................................8
   3.      Morsecode Cipher: ..................................................................................................................8
   4.      Vigenere Cipher: .....................................................................................................................9
        Vigenere Cipher Table: ................................................................................................................9
Conclusion: ........................................................................................................................................9
Refrences: ....................................................................................................................................... 10




                                                                                                                                                    4
Encrypter/Decrypter




                      5
Objective:
The main objective of this project was to develop an encrypter/decrypter using different
encryption techniques in order to prevent the messages or information from loosing or
eavesdropping.


Introduction:
Maintaining privacy in our personal communications is something everyone desires.
Encryption is a means to achieve that privacy. It was invented for that purpose. But
encryption, like most things, can be used for good or evil. And the debate over how to
harness this powerful tool rages on as people on both sides see that there are no easy
answers.


What is encryption?
Encryption is the process of scrambling a message so that only the intended recipient can
read it. The actual cryptographic process is generally a complicated mathematical
formulation, the more complex -- the more difficult to break. A key is supplied to the
recipient so that they can then decipher the message. Keys for encryption algorithms are
described in terms of the number of bits. The higher the number of bits - the more difficult
that cryptosystem would be to break.


Why do we need it?
Encryption can provide a means of securing information. As more and more information is
stored on computers or communicated via computers, the need to insure that this
information is invulnerable to snooping and/or tampering becomes more relevant. Any
thoughts with respect to your own personal information (ie. medical records, tax records,
credit history, employment history, etc.) may bring to mind an area in which you do want,
need or expect privacy. As teachers, we are often called upon to handle sensitive student
information. We need to have access to student records, but maintain the confidentiality of
their information.

Encryption is seen by many people as a necessary step for commerce on the internet to
succeed. Without confidence that net transactions are secure, people are unwilling to trust
a site enough to transact any sort of business using it. Encryption may give consumers the
confidence they need to do internet business.

Encryption can also provide a means of "message authentication". The PGP User's Guide
explains, "The sender's own secret key can be used to encrypt a message thereby signing it.
This creates a digital signature of a message. This proves that the sender was the true


                                                                                          6
originator of the message, and that the message has not been subsequently altered by
anyone else, because the sender alone possesses the secret key that made that signature."
This prevents forgery of that signed message, and prevents the sender from denying the
signature.

E-mail is certainly not secure. While you may believe that the use of a password makes
your business private, you should be aware that sending information without encryption
has been likened to sending postcards through the mail. Your message is totally open to
interception by anyone along the way. You may believe that your personal e-mail is not
incriminating and does not contain content that you must keep secret, and you may be
right. But there are many common situations, where users have a legitimate need for
security both to protect that information and to insure that information is not tampered
with: Consumers placing orders with credit cards via the Internet, journalists protecting
their sources, therapists protecting client files, businesses communicating trade secrets to
foreign branches, ATM transactions, political dissenters, or whistle-blowers -- all are
examples of why encryption may be needed for e-mail or data files, and why it might be
necessary to create a secure environment through its use.


What is Decryption?
Decryption is the opposite of encryption. When something is encrypted, the receiver needs
to decrypt that in order to read the original information or message.


Description:
In our project in order to develop an encrypter/decrypter, we used four different
encryption techniques & algorithms namely;

       Ceaser Cipher
       Transposition Cipher
       Moscode Cipher
       Vinegar Cipher



   1. Ceaser Cipher:
       In cryptography, a Caesar cipher, also known as a Caesar's cipher, the shift cipher,
       Caesar's code or Caesar shift, is one of the simplest and most widely known
       encryption techniques. It is a type of substitution cipher in which each letter in the
       plaintext is replaced by a letter some fixed number of positions down the alphabet.
       For example, with a shift of 3, A would be replaced by D, B would become E, and so


                                                                                           7
on. The method is named after Julius Caesar, who used it in his private
       correspondence.
       Example:
       Text:                                   Cipher text:
       I m salman                              l dp vdopdq

Thus, the Caesar cipher is a shift cipher since the ciphertext alphabet is derived from the
plaintext alphabet by shifting each letter a certain number of spaces. For example, if we use
a shift of 19, then we get the following pair of ciphertext and plaintext alphabets:

                 Plaintext: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
                 Ciphertext: T U V W X Y Z A B C D E F G H I J K L M N O P Q R S




   2. Transposition Cipher:
   In cryptography, a transposition cipher is a method of encryption by which the
   positions held by units of plaintext (which are commonly characters or groups of
   characters) are shifted according to a regular system, so that the ciphertext constitutes
   a permutation of the plaintext. That is, the order of the units is changed.
   Mathematically obijective function is used on the characters' positions to encrypt and
   an inverse function to decrypt.
   Example: The way the simplest of these works is by picking a matrix of a fixed size (say, 6x10)
   and then writing your message across the rows. e.g. I am Salman Bajwa (matrix 4).
   0 1       2        3
   I -       a        m
   - S       a        l
   M a       n        -
   B a       j        w
   - -       a        -




   3. Morsecode Cipher:
   Morse Code, created by Samuel Morse, was designed to transmit letters across
   telegrams. He wanted frequently used letters to have short codes and less frequently
   used letters to have longer codes. When encrypting, only letters and numbers will be
   encoded and the rest will be treated like spaces. When decrypting, only periods and
   hyphens will be decoded and the rest will be treated like spaces. This web page uses
   International Morse Code with some additional enhancements, but without support for
   foreign characters. It also is geared to help you decode Morse Code snippets you find
   with the Reverse (flips the text) and Swap (exchanges periods and hyphens) links.
   e.g. I am Salman

                                                                                                8
Morsecode Cipher Text: .. / .- -- / ... .- .-.. -- .- -.

This is a table of all the Morse Code translations

A .-B -...C -.-.D -..E .F ..-.G --.H ....I ..J .--- K -.-L .-..M --N -.O ---P .--.Q --.-R .-
.S ...T - U ..-V ...-W .--X -..-Y -.--Z --..0 -----1 .----2 ..---3 ...-- 4 ....-5 .....6 -....7 --...8
---..9 ----.. .-.-.-, --..--? ..--..- -....- = -...-: ---...; -.-.-.( -.--.) -.--.-/ -..-." .-..-.$ ...-..-' .----.¶
.-.-.. _ ..--.-@ .--.-.! ---.! -.-.--+ .-.-.~ .-...# ...-.-& . ...⁄ -..-.



    4. Vigenere Cipher:
    The Vigenère cipher is a method of encrypting alphabetic text by using a series of
    different Caesar ciphers based on the letters of a keyword. It is a simple form of
    polyalphabetic substitution.

In a Caesar cipher, each letter of the alphabet is shifted along some number of places; for
example, in a Caesar cipher of shift 3, A would become D, B would become E, Y would
become B and so on. The Vigenère cipher consists of several Caesar ciphers in sequence
with different shift values.



Vigenere Cipher Table:




Conclusion:
In the end we were able to develop an encrypter & decrypter for the security purposes,
Alhamdolilah.
                                                                                                                  9
Refrences:
     Cryptography & Network Security- Course Book
     Google




                                                    10

Contenu connexe

Tendances

Cryptography and encryption
Cryptography and  encryptionCryptography and  encryption
Cryptography and encryptionAncy Mariam Babu
 
Cryptography
CryptographyCryptography
Cryptographyherrberk
 
Final ss2-digital-signature-group5
Final ss2-digital-signature-group5Final ss2-digital-signature-group5
Final ss2-digital-signature-group5Phan Minh
 
Symmetric & Asymmetric Cryptography
Symmetric & Asymmetric CryptographySymmetric & Asymmetric Cryptography
Symmetric & Asymmetric Cryptographychauhankapil
 
Cryptography Presentation
Cryptography PresentationCryptography Presentation
Cryptography PresentationDonte Francis
 
Information Security Cryptography ( L01- introduction )
Information Security Cryptography ( L01- introduction )Information Security Cryptography ( L01- introduction )
Information Security Cryptography ( L01- introduction )Anas Rock
 
Cryptography
CryptographyCryptography
CryptographyAnandKaGe
 
network security, cryptography,steganography
network security, cryptography,steganographynetwork security, cryptography,steganography
network security, cryptography,steganographyNikhil l
 
ID-Based Directed Multi-Proxy Signature Scheme from Bilinear Pairings
ID-Based Directed Multi-Proxy Signature Scheme from Bilinear PairingsID-Based Directed Multi-Proxy Signature Scheme from Bilinear Pairings
ID-Based Directed Multi-Proxy Signature Scheme from Bilinear PairingsCSCJournals
 
Conditional identity based broadcast proxy re-encryption and its application ...
Conditional identity based broadcast proxy re-encryption and its application ...Conditional identity based broadcast proxy re-encryption and its application ...
Conditional identity based broadcast proxy re-encryption and its application ...Shakas Technologies
 
Conditional identity based broadcast proxy re-encryption and its application ...
Conditional identity based broadcast proxy re-encryption and its application ...Conditional identity based broadcast proxy re-encryption and its application ...
Conditional identity based broadcast proxy re-encryption and its application ...ieeepondy
 
Public key Cryptography & RSA
Public key Cryptography & RSAPublic key Cryptography & RSA
Public key Cryptography & RSAAmit Debnath
 
Cryptography by gaurav singh
Cryptography by gaurav singhCryptography by gaurav singh
Cryptography by gaurav singhGaurav Singh
 

Tendances (20)

Cryptography and encryption
Cryptography and  encryptionCryptography and  encryption
Cryptography and encryption
 
Cryptography
CryptographyCryptography
Cryptography
 
Cryptography
CryptographyCryptography
Cryptography
 
Cryptology - The practice and study of hiding information
Cryptology - The practice and study of hiding informationCryptology - The practice and study of hiding information
Cryptology - The practice and study of hiding information
 
Final ss2-digital-signature-group5
Final ss2-digital-signature-group5Final ss2-digital-signature-group5
Final ss2-digital-signature-group5
 
Cryptography
CryptographyCryptography
Cryptography
 
Cryptography
CryptographyCryptography
Cryptography
 
Symmetric & Asymmetric Cryptography
Symmetric & Asymmetric CryptographySymmetric & Asymmetric Cryptography
Symmetric & Asymmetric Cryptography
 
Cryptography Presentation
Cryptography PresentationCryptography Presentation
Cryptography Presentation
 
Information Security Cryptography ( L01- introduction )
Information Security Cryptography ( L01- introduction )Information Security Cryptography ( L01- introduction )
Information Security Cryptography ( L01- introduction )
 
Cryptography
CryptographyCryptography
Cryptography
 
network security, cryptography,steganography
network security, cryptography,steganographynetwork security, cryptography,steganography
network security, cryptography,steganography
 
ID-Based Directed Multi-Proxy Signature Scheme from Bilinear Pairings
ID-Based Directed Multi-Proxy Signature Scheme from Bilinear PairingsID-Based Directed Multi-Proxy Signature Scheme from Bilinear Pairings
ID-Based Directed Multi-Proxy Signature Scheme from Bilinear Pairings
 
Conditional identity based broadcast proxy re-encryption and its application ...
Conditional identity based broadcast proxy re-encryption and its application ...Conditional identity based broadcast proxy re-encryption and its application ...
Conditional identity based broadcast proxy re-encryption and its application ...
 
Cryptography basices
Cryptography basicesCryptography basices
Cryptography basices
 
Cryptography
CryptographyCryptography
Cryptography
 
Conditional identity based broadcast proxy re-encryption and its application ...
Conditional identity based broadcast proxy re-encryption and its application ...Conditional identity based broadcast proxy re-encryption and its application ...
Conditional identity based broadcast proxy re-encryption and its application ...
 
Crytography
CrytographyCrytography
Crytography
 
Public key Cryptography & RSA
Public key Cryptography & RSAPublic key Cryptography & RSA
Public key Cryptography & RSA
 
Cryptography by gaurav singh
Cryptography by gaurav singhCryptography by gaurav singh
Cryptography by gaurav singh
 

Similaire à Network Security

Network Security
Network SecurityNetwork Security
Network SecurityRitam Das
 
Cryptography
CryptographyCryptography
CryptographyJasim Jas
 
Paper id 312201534
Paper id 312201534Paper id 312201534
Paper id 312201534IJRAT
 
MAJOR PROJECT FORMAT--2013(new 1)
MAJOR PROJECT FORMAT--2013(new 1)MAJOR PROJECT FORMAT--2013(new 1)
MAJOR PROJECT FORMAT--2013(new 1)Neelabja Manna
 
Unit - I cyber security fundamentals part -1.pptx
Unit - I cyber security fundamentals part -1.pptxUnit - I cyber security fundamentals part -1.pptx
Unit - I cyber security fundamentals part -1.pptxkarthikaparthasarath
 
Cryptography by manisha jha
Cryptography by manisha jhaCryptography by manisha jha
Cryptography by manisha jhaManishaJha43
 
Bt0088 cryptography and network security1
Bt0088 cryptography and network security1Bt0088 cryptography and network security1
Bt0088 cryptography and network security1Techglyphs
 
Master thesis 14023164
Master thesis 14023164Master thesis 14023164
Master thesis 14023164Thivya Devaraj
 
Performance Comparison of File Security System using TEA and Blowfish Algorithms
Performance Comparison of File Security System using TEA and Blowfish AlgorithmsPerformance Comparison of File Security System using TEA and Blowfish Algorithms
Performance Comparison of File Security System using TEA and Blowfish Algorithmsijtsrd
 
What is digital signature or DSC
What is digital signature or DSCWhat is digital signature or DSC
What is digital signature or DSCAdv Prashant Mali
 
7222019 TestOut LabSimhttpscdn.testout.comclient-v5-.docx
7222019 TestOut LabSimhttpscdn.testout.comclient-v5-.docx7222019 TestOut LabSimhttpscdn.testout.comclient-v5-.docx
7222019 TestOut LabSimhttpscdn.testout.comclient-v5-.docxblondellchancy
 

Similaire à Network Security (20)

Network Security
Network SecurityNetwork Security
Network Security
 
Cryptography
CryptographyCryptography
Cryptography
 
Crypto
CryptoCrypto
Crypto
 
Cryptography
CryptographyCryptography
Cryptography
 
Paper id 312201534
Paper id 312201534Paper id 312201534
Paper id 312201534
 
Cryptography
CryptographyCryptography
Cryptography
 
MAJOR PROJECT FORMAT--2013(new 1)
MAJOR PROJECT FORMAT--2013(new 1)MAJOR PROJECT FORMAT--2013(new 1)
MAJOR PROJECT FORMAT--2013(new 1)
 
Unit - I cyber security fundamentals part -1.pptx
Unit - I cyber security fundamentals part -1.pptxUnit - I cyber security fundamentals part -1.pptx
Unit - I cyber security fundamentals part -1.pptx
 
Encryption by fastech
Encryption by fastechEncryption by fastech
Encryption by fastech
 
Cryptography by manisha jha
Cryptography by manisha jhaCryptography by manisha jha
Cryptography by manisha jha
 
Bt0088 cryptography and network security1
Bt0088 cryptography and network security1Bt0088 cryptography and network security1
Bt0088 cryptography and network security1
 
Master thesis 14023164
Master thesis 14023164Master thesis 14023164
Master thesis 14023164
 
PACE-IT, Security+ 6.1: Introduction to Cryptography (part 1)
PACE-IT, Security+ 6.1: Introduction to Cryptography (part 1)PACE-IT, Security+ 6.1: Introduction to Cryptography (part 1)
PACE-IT, Security+ 6.1: Introduction to Cryptography (part 1)
 
Performance Comparison of File Security System using TEA and Blowfish Algorithms
Performance Comparison of File Security System using TEA and Blowfish AlgorithmsPerformance Comparison of File Security System using TEA and Blowfish Algorithms
Performance Comparison of File Security System using TEA and Blowfish Algorithms
 
Public Vs. Private Keys
Public Vs. Private KeysPublic Vs. Private Keys
Public Vs. Private Keys
 
What is digital signature or DSC
What is digital signature or DSCWhat is digital signature or DSC
What is digital signature or DSC
 
7222019 TestOut LabSimhttpscdn.testout.comclient-v5-.docx
7222019 TestOut LabSimhttpscdn.testout.comclient-v5-.docx7222019 TestOut LabSimhttpscdn.testout.comclient-v5-.docx
7222019 TestOut LabSimhttpscdn.testout.comclient-v5-.docx
 
Unit 1 QB.docx
Unit 1 QB.docxUnit 1 QB.docx
Unit 1 QB.docx
 
Information Security
Information SecurityInformation Security
Information Security
 
Data encryption
Data encryptionData encryption
Data encryption
 

Plus de Express News

Plus de Express News (18)

Network Security
Network SecurityNetwork Security
Network Security
 
Yagi uda antennea
Yagi uda antenneaYagi uda antennea
Yagi uda antennea
 
Audio amplifier prj
Audio amplifier prjAudio amplifier prj
Audio amplifier prj
 
PSK modulation
PSK modulationPSK modulation
PSK modulation
 
Term paper
Term paperTerm paper
Term paper
 
4 g technology
4 g technology4 g technology
4 g technology
 
Smart aquarium project
Smart aquarium projectSmart aquarium project
Smart aquarium project
 
Traffic Signal using Solar Panel
Traffic Signal using Solar PanelTraffic Signal using Solar Panel
Traffic Signal using Solar Panel
 
How to know original phone and fake phone
How to know original phone and fake phoneHow to know original phone and fake phone
How to know original phone and fake phone
 
Routing & Switching report
Routing & Switching reportRouting & Switching report
Routing & Switching report
 
ESL report
ESL reportESL report
ESL report
 
DSP Report
DSP ReportDSP Report
DSP Report
 
TDMA
TDMATDMA
TDMA
 
Final ppt
Final pptFinal ppt
Final ppt
 
Student counselor
Student counselorStudent counselor
Student counselor
 
Aem
AemAem
Aem
 
CF
CFCF
CF
 
Cao project final
Cao project finalCao project final
Cao project final
 

Dernier

Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Integumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptIntegumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptshraddhaparab530
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationRosabel UA
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfPatidar M
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxVanesaIglesias10
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptxiammrhaywood
 

Dernier (20)

Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Integumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptIntegumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.ppt
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translation
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptx
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
 

Network Security

  • 1. PAF-Karachi Institute of Economics & Technology Final Project Report Project: Encrypter/Decrypter Course: Network Security C.Id:55911 Instructor: Ma’m Seema Ansari Group Members: Salman Khaliq Bajwa (3746) Pawan Khan (4236) 1
  • 2. DEDICATION This report is dedicated to Our Parents, Whose love, affection and support helped s in bringing our work to this level of accomplishments; we are also thankful to them for educating us for unconditional support and encouragement to pursue our interests, even when the interest went beyond the boundaries of field and scope. Without their support and kindness this work would not have been possible. 2
  • 3. ACKNOWLEDEMENT Praise to Allah the most beneficent and the most merciful We are grateful to our project advisor Ma’m Seema Ansari, for enlightening us with her precious knowledge and vast experience to benefit us in the future. We also like to thank our teachers and lab assistants for their assistance and support. We would also thank with all gratitude and depth of our hearts to our parents who helped us not only financially but with integrity too and support us in all our hardships. Finally our sincere thanks to our institute PAF-KIET, for providing us the opportunity to gave us the strength to undertake this project. Special thanks to all our fellows and friends who lend us a hand throughout the project’s each phase. We pray this effort may prove to be the beginning of new era, a era in which Science and Technology may make great progress in Pakistan and Pakistan may become a part of the developed nations. Thank you. 3
  • 4. Table of Contents Encrypter/Decrypter ..........................................................................................................................5 Objective: ..........................................................................................................................................6 Introduction: .....................................................................................................................................6 What is encryption? ...........................................................................................................................6 Why do we need it? ...........................................................................................................................6 What is Decryption?...........................................................................................................................7 Description: .......................................................................................................................................7 1. Ceaser Cipher:.........................................................................................................................7 2. Transposition Cipher: ..............................................................................................................8 3. Morsecode Cipher: ..................................................................................................................8 4. Vigenere Cipher: .....................................................................................................................9 Vigenere Cipher Table: ................................................................................................................9 Conclusion: ........................................................................................................................................9 Refrences: ....................................................................................................................................... 10 4
  • 6. Objective: The main objective of this project was to develop an encrypter/decrypter using different encryption techniques in order to prevent the messages or information from loosing or eavesdropping. Introduction: Maintaining privacy in our personal communications is something everyone desires. Encryption is a means to achieve that privacy. It was invented for that purpose. But encryption, like most things, can be used for good or evil. And the debate over how to harness this powerful tool rages on as people on both sides see that there are no easy answers. What is encryption? Encryption is the process of scrambling a message so that only the intended recipient can read it. The actual cryptographic process is generally a complicated mathematical formulation, the more complex -- the more difficult to break. A key is supplied to the recipient so that they can then decipher the message. Keys for encryption algorithms are described in terms of the number of bits. The higher the number of bits - the more difficult that cryptosystem would be to break. Why do we need it? Encryption can provide a means of securing information. As more and more information is stored on computers or communicated via computers, the need to insure that this information is invulnerable to snooping and/or tampering becomes more relevant. Any thoughts with respect to your own personal information (ie. medical records, tax records, credit history, employment history, etc.) may bring to mind an area in which you do want, need or expect privacy. As teachers, we are often called upon to handle sensitive student information. We need to have access to student records, but maintain the confidentiality of their information. Encryption is seen by many people as a necessary step for commerce on the internet to succeed. Without confidence that net transactions are secure, people are unwilling to trust a site enough to transact any sort of business using it. Encryption may give consumers the confidence they need to do internet business. Encryption can also provide a means of "message authentication". The PGP User's Guide explains, "The sender's own secret key can be used to encrypt a message thereby signing it. This creates a digital signature of a message. This proves that the sender was the true 6
  • 7. originator of the message, and that the message has not been subsequently altered by anyone else, because the sender alone possesses the secret key that made that signature." This prevents forgery of that signed message, and prevents the sender from denying the signature. E-mail is certainly not secure. While you may believe that the use of a password makes your business private, you should be aware that sending information without encryption has been likened to sending postcards through the mail. Your message is totally open to interception by anyone along the way. You may believe that your personal e-mail is not incriminating and does not contain content that you must keep secret, and you may be right. But there are many common situations, where users have a legitimate need for security both to protect that information and to insure that information is not tampered with: Consumers placing orders with credit cards via the Internet, journalists protecting their sources, therapists protecting client files, businesses communicating trade secrets to foreign branches, ATM transactions, political dissenters, or whistle-blowers -- all are examples of why encryption may be needed for e-mail or data files, and why it might be necessary to create a secure environment through its use. What is Decryption? Decryption is the opposite of encryption. When something is encrypted, the receiver needs to decrypt that in order to read the original information or message. Description: In our project in order to develop an encrypter/decrypter, we used four different encryption techniques & algorithms namely; Ceaser Cipher Transposition Cipher Moscode Cipher Vinegar Cipher 1. Ceaser Cipher: In cryptography, a Caesar cipher, also known as a Caesar's cipher, the shift cipher, Caesar's code or Caesar shift, is one of the simplest and most widely known encryption techniques. It is a type of substitution cipher in which each letter in the plaintext is replaced by a letter some fixed number of positions down the alphabet. For example, with a shift of 3, A would be replaced by D, B would become E, and so 7
  • 8. on. The method is named after Julius Caesar, who used it in his private correspondence. Example: Text: Cipher text: I m salman l dp vdopdq Thus, the Caesar cipher is a shift cipher since the ciphertext alphabet is derived from the plaintext alphabet by shifting each letter a certain number of spaces. For example, if we use a shift of 19, then we get the following pair of ciphertext and plaintext alphabets: Plaintext: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Ciphertext: T U V W X Y Z A B C D E F G H I J K L M N O P Q R S 2. Transposition Cipher: In cryptography, a transposition cipher is a method of encryption by which the positions held by units of plaintext (which are commonly characters or groups of characters) are shifted according to a regular system, so that the ciphertext constitutes a permutation of the plaintext. That is, the order of the units is changed. Mathematically obijective function is used on the characters' positions to encrypt and an inverse function to decrypt. Example: The way the simplest of these works is by picking a matrix of a fixed size (say, 6x10) and then writing your message across the rows. e.g. I am Salman Bajwa (matrix 4). 0 1 2 3 I - a m - S a l M a n - B a j w - - a - 3. Morsecode Cipher: Morse Code, created by Samuel Morse, was designed to transmit letters across telegrams. He wanted frequently used letters to have short codes and less frequently used letters to have longer codes. When encrypting, only letters and numbers will be encoded and the rest will be treated like spaces. When decrypting, only periods and hyphens will be decoded and the rest will be treated like spaces. This web page uses International Morse Code with some additional enhancements, but without support for foreign characters. It also is geared to help you decode Morse Code snippets you find with the Reverse (flips the text) and Swap (exchanges periods and hyphens) links. e.g. I am Salman 8
  • 9. Morsecode Cipher Text: .. / .- -- / ... .- .-.. -- .- -. This is a table of all the Morse Code translations A .-B -...C -.-.D -..E .F ..-.G --.H ....I ..J .--- K -.-L .-..M --N -.O ---P .--.Q --.-R .- .S ...T - U ..-V ...-W .--X -..-Y -.--Z --..0 -----1 .----2 ..---3 ...-- 4 ....-5 .....6 -....7 --...8 ---..9 ----.. .-.-.-, --..--? ..--..- -....- = -...-: ---...; -.-.-.( -.--.) -.--.-/ -..-." .-..-.$ ...-..-' .----.¶ .-.-.. _ ..--.-@ .--.-.! ---.! -.-.--+ .-.-.~ .-...# ...-.-& . ...⁄ -..-. 4. Vigenere Cipher: The Vigenère cipher is a method of encrypting alphabetic text by using a series of different Caesar ciphers based on the letters of a keyword. It is a simple form of polyalphabetic substitution. In a Caesar cipher, each letter of the alphabet is shifted along some number of places; for example, in a Caesar cipher of shift 3, A would become D, B would become E, Y would become B and so on. The Vigenère cipher consists of several Caesar ciphers in sequence with different shift values. Vigenere Cipher Table: Conclusion: In the end we were able to develop an encrypter & decrypter for the security purposes, Alhamdolilah. 9
  • 10. Refrences: Cryptography & Network Security- Course Book Google 10