GithubHelp home page GithubHelp logo

vigenere-cipher's Introduction

Decription

A simple tool to encrypt/decrypt a file by keyword,which can encrypt/decrypt
all printable character in ASCII table.
As for keyword,it can also access all printable character in ASCII table.

Usage

./vigenere_cipher [-o output_file] [-e] [-d] [-h] input_file

Parameter:
-e: Encrypt the file.[Default]
-d: Decrypt the file.
-o: Specify the output_filt.
-h: Show help.

Note:
If you not use the -o parameter to specify a output file, then the cipertext will be output to a default file,and when after encrypt/decrypt the file,the original file(i.e input_ file)will be deleted.So if you want to reserve the the orig- inal file,please use the -o parameter to specify a output file.

How to run the program?

You can run the program as

$ make        
$ ./vigenere_cipher -h

Example

Encrypt the file text:

$ ./vigenere_cipher text       
Enter the keyword: Lemon     

then will create a new file named text.cry that contain the ciphertext.
Decrypt the file text.cry:

$ ./vigenere -d text.cry      
Enter the keyword: Lemon

then a new file named text will be created,and the original text will in it.

Try it on my website

You can try this tool on my website:
Encrypt: http://www.studyandshare.info/encrypt.html
Decrypt: http://www.studyandshare.info/decrypt.html

Reference

Reference Wikipedia.
In addition,I have enhanced the function of encrypy and decrypt,such as it can
encrypt/decrypt all printable character in ASCII table.

vigenere-cipher's People

Contributors

renyuntao 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.