WebClub-NITK / Hacktoberfest-2k18

Repository for Hacktoberfest 2018 open for the global open source community.
https://webclub-nitk.github.io/Hacktoberfest-2k18/
19 stars 102 forks source link

Implement One Time Pad #217

Open aditigupta17 opened 5 years ago

aditigupta17 commented 5 years ago

Description

The one-time pad (OTP) is an encryption technique that cannot be cracked, but requires the use of a one-time pre-shared key the same size as, or longer than, the message being sent. In this technique, a plaintext is paired with a random secret key (also referred to as a one-time pad). Then, each bit or character of the plaintext is encrypted by combining it with the corresponding bit or character from the pad using modular addition.

Input:

You are expected to write a program that receives a Plain Text (string) and OTP (string) and returns the encrypted ciphertext.

Example: Plain Text: quizzingisfun OTP: tequilamockingbird Cipher Text: jyythtnswupca

Details

Technical Specifications:

Issue requirements / progress

Resources

https://en.wikibooks.org/wiki/Cryptography/One_time_pads

Directory Structure

For this issue, use the following directory of the Hacktoberfest-2k18 repository: /systems/cryptography/one-time-pad/ (where language_name is one of the languages mentioned above.)

Note

Please claim the issue first by commenting here before starting to work on it.

yogeshjoshi commented 5 years ago

Im willing to contribute on this issue. (Lang: Python)

aditigupta17 commented 5 years ago

@yogeshjoshi Go ahead.

andymac-2 commented 5 years ago

Can I claim C?

aditigupta17 commented 5 years ago

@andymac-2 Sure. Go ahead.

KshitijMhatre commented 5 years ago

I want to solve this for lang: Java