Git Product home page Git Product logo

cryptex's Introduction

Cryptex

In this project, we had as work decode a message written in a cryptex, the program has as input 2 files, one is a table like next.

word,count
the,23135851162
of,13151942776
and,12997637966
to,12136980858
a,9081174698
in,8469404971
for,5933321709
is,4705743816

The other is a file with the message, for example this

1 # I am a comment, do what I say
2 # I am a washing machine, do what I say
3 m i r a x y z a c
4 e l x c v s d o u
5 p e c e s i l l o
6 h m a r g e m m m

To decode the message it is necessary to rotate each column of the cryptex until finding a word, in this case, the message hidden is "pecesillo". One of the problems is that this cryptex has a compartment with an acid highly corrosive that can danger the content of the cryptex. For this is very important to find the word with the least amount of movements. This is achieved when in the first row is the hidden word as this

p   e  c  e  s   i   l     l    o
h  m  a  r  g  e  m  m  m 
m  i   r  a  x  y   z    a    c
e   l   x  c  v  s   d   o    u

File CSV

You can find this file in the next link

Thinks about the cryptex

The cryptex is a matrix of n x m dimensions

Compile the program

To this, you can use the command make this compile the program in a file bin/exe

Now we just have to run the program to do its magic, you can execute the program using the next command

./bin/exe test_case/<name file> example_file.csv

cryptex's People

Contributors

camilu-png avatar fabianvegaa avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

camilu-png

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.