EDUCBA

EDUCBA

MENUMENU
  • Free Tutorials
  • Free Courses
  • Certification Courses
  • 600+ Courses All in One Bundle
  • Login

One Time Pad

By Priya PedamkarPriya Pedamkar

Home » Software Development » Software Development Tutorials » Network Security Tutorial » One Time Pad

One Time Pad

Overview of One Time Pad

One time pad is a subset of vernam cipher, implemented using a random set of non-repeating characters as the input cipher text. The length of input ciphertext must be equal to the length of the original plain text. It is named as a one-time pad because once the input ciphertext is used for the transmission, it is never used again for any other message, i.e. input ciphertext is discarded after a single-use; hence it is used for the short message. For example, the one time password we use for secure transmission.

What is One Time Pad?

One-time-pad is a system that generates a randomly organized and unique ‘private key’; this one-time use private key is used to encrypt a later decrypted message by the receiver using a matching one-time-pad and key. Information encrypted with keys is almost impossible to break. Each encryption is unique and shows no relation with other encryption. In one-time-pad, the key used is known as a secret key as they hold a very crucial piece of pieces of information.

Start Your Free Software Development Course

Web development, programming languages, Software testing & others

Understanding of One Time Pad

To understand one-time-pad, we must focus on the encryption process to see how things work. This will help us understand the one-time-pad in a better way. The encryption process is crucial to understand; in this, some keys are used in pairs. Each user has their copy of the key, which is distributed securely before the encryption process. The One-time-pad keys are highly confidential, so they are assured by highly continuous protection during the storage and distribution phase.

There are a combination and variation of XOR associated with the entire encryption process. Let us see how things work at ground level –

  1. While encrypting any plain text data, the sender uses a key string that has a similar length to the text. This key is used by mixing (XOR-ing) bit by bit. The bit by bit mixing means a bit of ‘key’ with a bit of ‘plain text’ to create a bit of ‘ciphertext’.
  2. This ciphertext is then forwarded to the recipient.
  3. At the recipient end, the encoded message is mixed with the duplicate copy (XOR-ed) of the One-time key and the plain text is restored. After this, the keys that belong to the sender’s and recipients are destroyed automatically. This makes sure that no re-application and usage of the same is possible.

How Does One Time Pad work?

At its core, a one-time-pad system holds a ‘random key’. This random key is a block or collection of numbers that is used to transform the original message.

Note: The Original Message is called Plaintext.

Coded text is called a Ciphertext. First, you have to create a ‘random key’ and to do this; you need a ‘method’ to convert alphabets into numbers.

Popular Course in this category
All in One Software Development Bundle (600+ Courses, 50+ projects)600+ Online Courses | 3000+ Hours | Verifiable Certificates | Lifetime Access
4.6 (3,144 ratings)
Course Price

View Course

Related Courses
CDN Training (2 Courses)OSPF Training Program (2 Courses)Penetration Testing Training Program (2 Courses)

Follow the below-mentioned conversion table chart:

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
01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
 

 

For Example:

your message is: ASFKHRGQLRIUGQLFHT

1) To make an easier and effective approach, we have to break it into a set of two characters; let see how –

AS, FK, HR, GQ, LR, IU, GQ, LF, HT

2) Follow the above-mentioned conversion table chart – we have something like this.

AS, FK, HR, GQ, LR, IU, GQ, LF, HT   =    0119, 0611, 0818, 0717, 1218, 0921, 0717, 1206, 0820

3) So finally, the text “ASFKHRGQLRIUGQLFHT” got converted to “0119  0611 0818 0717 1218 0921 0717 1206 0820”

Principles

There is a basic principle underlying the working of ‘Cryptography’ and ‘One-time-pad’. Kerckhoff’s principle of cryptography was born in Netherland by Auguste Kerckhoff in the 19th century. This principle forms the fundamental of open security, security by design. “The design of a system should not require secrecy”.

What can you do with One Time Pad?

  • The one-time pad can be used for superencryption.
  • It can be apart of an introduction to cryptography.
  • Stream ciphers mimic it.
  • It is the most sought-out option in a situation where two separate environments are considered complete secrecy.

Advantages and disadvantages

Let us see some of the Advantages and Disadvantages of One Time Pad:

Advantages

  • This device is completely unbreakable.
  • It is secured as it can be used only once.
  • Each byte in a one-time-pad is having any connection to another byte of the ley.

Disadvantages

  • Exchange of the one-time-pad.
  • The ‘key’ is as long as the ‘message’.
  • Links for disadvantages in detail – Coursera.

Uses of One Time Pad

  • Confidentiality: One of the prime reasons will be ‘Confidentiality’. One-Time-Pad users understand this as the messages and transcripts are secured form others.
  • Integrity: The information is uniform and cannot be altered or changed, either in storage or while transmission. The sender and intended receiver will get prior information about the changes if someone tries to.
  • Non-repudiation: The sender and creator of the information cannot deny their intention to create or transmit the information.
  • Authentication: Both the sender/receiver can claim his/her identity with the origin/destination of the information.

What is the need for One Time Pad?

The need for the one-time-pad lies with the:

  • Defense (across the globe).
  • Security personnel.
  • Spies and
  • Several other confidential agencies.

Also, with the users who want to communicate with keeping privacy in mind.

Conclusion

We have come across some crucial facts about the ancient science of cryptography and the one-time-pad. How this encryption technique has helped society in need of safe information communication. Since every coin has two faces, the one-time-pad technology is no different as it has bot usefulness and drawbacks associated with it.

Recommended Articles

This has been a guide to One Time Pad. Here we have discuss the understanding, use, need, how does it work, advantages and disadvantages. You can also go through our other suggested articles to learn more –

  1. Cryptography vs Encryption
  2. What is Decryption?
  3. What is a Cyber Attack?
  4. Cryptography Techniques

All in One Software Development Bundle (600+ Courses, 50+ projects)

600+ Online Courses

3000+ Hours

Verifiable Certificates

Lifetime Access

Learn More

1 Shares
Share
Tweet
Share
Primary Sidebar
Network Security Tutorial
  • Encryption/ Decryption
    • Encryption process
    • Public Key Encryption
    • Symmetric Key Encryption
    • What is Encryption
    • What is Decryption
    • Types of Cipher
    • Transposition Techniques
    • What is Steganography
    • One Time Pad
    • Steganography Techniques
  • Basics
    • Security Consultant Definition
    • Security Policies
    • What is Network Security
    • What is Data Security?
    • What is Cryptography
    • Cryptography Techniques
    • Cryptography Tools
    • Data Security Techniques and Privacy
    • Digital Signature Cryptography
    • Java Cryptography
    • Basics of Cybersecurity
    • What is Network Topology
    • Algorithms and Cryptography
    • HTTP Methods
    • Security Technologies
    • Security Architecture
    • Network Topologies
    • What is a Physical Address?
    • Logical Address
    • What is Storage Area Network?
    • Mobile Ad Hoc Network
    • What is Computer Networks?
    • Security Principles
    • What is Remote Access?
  • Protocols
    • What is TCP Protocol
    • What is TCP/IP
    • How do IP Addresses Work?
    • Routing Protocols Types
    • What is Telnet
    • What is TFTP
    • What is DHCP
    • What is SFTP
    • Address Resolution Protocol
    • Internet Control Message Protocol
    • Simple Mail Transfer Protocol
    • Internet Security Protocols
    • SMTP Protocol
    • Types of Networking Protocols
    • User Datagram Protocol
    • Data Link Layer
    • Data Link Layer Services
    • Network Layer
    • Transport Layer Protocols
    • What Is Networking Protocols
    • TFTP
    • What is ARP
    • Basic Fundamental Of Networking
    • What is IPv4
    • What is IPv6
    • CIFS Protocol
    • What is SMB?
    • What is EIGRP
    • What is LLDP?
  • Routing
    • What is Router
    • Types of Routers
    • Dynamic Routing
    • Routing Algorithms
    • Routing Protocol
    • What is Routing
    • What is Static Routing
    • Important Types of DNS Servers (Powerful)
  • Attacks
    • Types of Network Attacks
    • What is Trojan Horse Virus
    • What is DOS
    • Types of DOS Attacks
    • DDos Attack Mitigation
    • Ransomware Attack  
    • Types of Cyber Attack
    • What is a Brute Force Attack
    • What is a Phishing Attack
    • What is Cyber Attack
    • What is DDoS Attack
    • What is Man In The Middle Attack
    • What is Man In The Middle Attack
    • What is Ransomware
    • What is Pharming
    • What is Phishing
    • What is CSRF
    • DNS Amplification Attack
    • Denial of Service Attack
  • Algorithm
    • IDEA Algorithm
    • MD5 Algorithm
    • Symmetric Algorithms
    • Diffie Hellman Key Exchange Algorithm
    • Digital Signature Algorithm
    • Encryption Algorithm
    • Advanced Encryption Standard
    • Asymmetric Encryption
    • ElGamal Encryption
    • HMAC
    • DES Algorithm
    • Brute Force Algorithm
    • SHA Algorithm
    • RSA Algorithm
    • What is Digital Certificate?
    • Certificate Revocation
    • RC5
  • Hosting
    • Types of Web Hosting
    • Free Web Hosting Sites
    • What is Hosting
    • What is VPS Hosting
    • What is Web Hosting
    • Types of Domain
    • VPN Applications for PC
    • Why we use VPN?
    • What is Virtual Host?
  • Firewalls
    • What is a Firewall?
    • Types of Firewalls
    • Firewall Devices
    • Firewall Uses
  • Advanced
    • Cryptosystems
    • Configuring DHCP Server
    • Block Cipher modes of Operation
    • TCP/IP Model
    • Types of Network
    • Types of Network Devices
    • Types of Network Topology
    • Types of Intrusion Prevention System
    • Types of Proxy Servers
    • Types of Websites
    • Types of NAT 
    • Mobile IP
    • Career in Automobile Design
    • What is TFS
    • What is NAT
    • What is OSI Model
    • Data Link Layer OSI Model
    • What is Cross Site Scripting
    • Applications of Sensors
    • ARP Packet Format
    • Asymmetric Information
    • Autoencoders
    • What is FTP Server?
    • IPS Tools
    • IPv4 Header Format
    • IPv6 Header Format
    • Authentication Header
    • Kerberos
    • Network Mapper
    • Network Scanning Tools
    • Network Mapping Tools
    • Network Access Control
    • Vulnerability Assessment Tools
    • Network Sniffer
    • Networking Commands
    • Networking Devices
    • Networking Strategies
    • Digital Certificate
    • What is a Digital Signature?
    • Digital Signature Softwares
    • Digital Signature Types
    • Digital Signature vs Digital Certificate
    • PKCS
    • What is FTP
    • FTP Commands
    • What is MIME?
    • What is Smart Card?
    • Networking Ports
    • Mutual Authentication
    • Password Authentication
    • Data Masking 
    • Authentication Tokens
    • Biometric Authentication
    • What is IP?
    • IPSec
    • Secure Electronic Transaction
    • What is CIDR
    • Static Binding and Dynamic Binding
    • What is SSL
    • PKIX
    • Public Key Infrastructure
    • What is Wireshark
    • Daisy Chain Topology
    • Markov Logic Network
    • Security engineering
    • SNMP Monitoring Tools
    • Network Analysis Tools
    • Server Monitoring Tools
    • Network Discovery Tools
    • Network Management Tool
    • SIEM Tools
    • OSINT Tools
    • Multiple Ping Tool
  • Interview Questions
    • Network Security Interview Questions
    • Networking Interview Questions
    • EIGRP Interview Questions

Related Courses

CDN Training

OSPF Certification Training

Penetration Training Course

Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Corporate Training
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Java Tutorials
  • Python Tutorials
  • All Tutorials
Certification Courses
  • All Courses
  • Software Development Course - All in One Bundle
  • Become a Python Developer
  • Java Course
  • Become a Selenium Automation Tester
  • Become an IoT Developer
  • ASP.NET Course
  • VB.NET Course
  • PHP Course

© 2020 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA Login

Forgot Password?

EDUCBA
Free Software Development Course

Web development, programming languages, Software testing & others

*Please provide your correct email id. Login details for this Free course will be emailed to you
Book Your One Instructor : One Learner Free Class

Let’s Get Started

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA
Free Software Development Course

Web development, programming languages, Software testing & others

*Please provide your correct email id. Login details for this Free course will be emailed to you

Special Offer - All in One Software Development Bundle (600+ Courses, 50+ projects) Learn More