Code Monkey home page Code Monkey logo

enigma's Introduction

Welcome to my Tyla Devon's Enigma Project

Here you can encrypt and decrypt simple text using your Command Line Interface, or CFI.

To begin, clone down this repo and open in a text editor.

Open the message.txt file at the bottom of the project.

The message should read, "Tylas encryptor is great"

You can replace this message with any message you would like.

After you have the message you would like to encrypt...

Run the following command in your terminal, ensuring first that you are within the Root folder of Enigma:

  • ruby ./command/encrypt.rb message.txt encrypted.txt

You should receive a response in the terminal like this one:

  • Created encrypted.txt with the key 19883 and date 081219

Please Note: the key and date that you get back will differ from mine here.

Go to the encrypted.txt file to view the encrypted message. It should look something like this:

  • ohovnjhhyaajoyuudbcamodn That's great! It encrypted your message. Now to decrypt it.

Using the same key and date that your terminal responded with in the encrypt response, run the following command:

  • ruby ./command/decrypt.rb encrypted.txt decrypted.txt 19883 081219

You should receive a response like this:

  • Created decrypted.txt with the key 98247 and date 081219

Now go to your decrypted.txt file to see the decrypted text:

  • tylas encryptor is great

Notice that their are no spaces in the encrypted message, as well as all lowercase in the decrypted message.

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.