Giter VIP home page Giter VIP logo

compsec_trab1's Introduction

Vigenere Ataque

O programa é capaz de codificar, decodificar e quebrar textos codificados com cifra vigenere.

Como usar

O programa recebe os textos por STDIN, por conveniencia podemos escrever os textos em um arquivo e pipar o texto com o comando cat. Podemos também rodar o programa escrever o input e depois finalizar com o .

Exemplo:

# exemplo_en.txt
regulating the circulation.  whenever i
find myself growing grim about the mouth; whenever it is a damp,
drizzly november in my soul; whenever i find myself involuntarily
pausing before coffin warehouses, and bringing up the rear of every
funeral i meet; and especially whenever my hypos get such an upper
hand of me, that it requires a strong moral principle to prevent me
from deliberately stepping into the street, and methodically knocking
people's hats off--then, i account it high time to get to sea as soon
as i can.  this is my substitute for pistol and ball.  with a
philosophical flourish cato throws himself upon his sword; i quietly
take to the ship.  there is nothing surprising in this.  if they but
knew it, almost all men in their degree, some time or other, cherish
very nearly the same feelings towards the ocean with me.

Para encryptar.

cat exemplo_en.txt | python3 main.py encrypt arara

Para decryptar.

cat exemplo_en.txt | python3 main.py encrypt arara \
				   | python3 main.py decrypt arara

Para atacar portugues e inglês

cat exemplo_en.txt | python3 main.py encrypt arara \
				   | python3 main.py break

Para atacar ingles

cat exemplo_en.txt | python3 main.py encrypt arara \
				   | python3 main.py break en

Para atacar portugues

cat exemplo_pt.txt | python3 main.py encrypt arara \
				   | python3 main.py break pt

Referencias

compsec_trab1's People

Contributors

dudufreire avatar ruanpetrus avatar

Watchers

 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.