Giter Club home page Giter Club logo

cs-assignment's Introduction

TSN3251 Computer Security Assignment

Below are the guide for setting up ruby on linux machine and running a ruby program. Note that everything is done in terminal.

Setting up ruby

  1. Install ruby: sudo apt-get install ruby-full

  2. Change the current directory to CS-Assignment: cd CS-Assignment

  3. Run bundler: bundle install

Running the sytem in interactive mode

To run Encyption System in interactive mode, run the following code.

ruby q3.rb -i

Running the system in non-interactive mode

Help command

ruby q3.rb -h

Example command

ruby q3.rb -n abc -e krkr

Above command will read input from file with name abc and will run key, railfence, key , railfence cipher on the input in that order

Command legend
   -i, --[no-]interactive           turn on interactive mode
   
   -e, --encryption-method          defines what encryption and in what order [ k - key cipher ] [ r - railfence ]
   
   -n, --input-filename             input file to process
   
   -o, --output-filename            output file for encrpyted
   
   -r, --rf-key 123                 key for railfence
   
   -k, --ky-key kappa               key for key cipher
   
   -t, --text                       text to encrypt
   
   -h, --help                       Show this message
   
   -v, --version                    Print version

cs-assignment's People

Contributors

jackgoh avatar hiiyl avatar iceddoggie 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.