Giter Site home page Giter Site logo

mit-crypto-two-time-pad's Introduction

mit-crypto-two-time-pad

Found this fun puzzle to solve in an MIT free computer network+security course: 6-857-network-and-computer-security-spring-2014

Problem 1-2. One-time pad with ciphertext feedback: (a) Here are two 8-character English words encrypted with the same “one-time pad”. What are the words?

e9 3a e9 c5 fc 73 55 d5 f4 3a fe c7 e1 68 4a df

https://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-857-network-and-computer-security-spring-2014/assignments/MIT6_857S14_ps1.pdf

My solution is not the most elegant, but works via XORing the 2 ciphertexts, and using dictionary attack of 8 letter words XOR'd with this key. To get these 8 letter words I parsed a dictionary file found at https://github.com/dwyl/english-words.

I did have trouble figuring out which message was which. It seemed there would be no logical way to tell, the professors answer confirmed this.

mit-crypto-two-time-pad's People

Contributors

alexdatsko avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.