Git Product home page Git Product logo

des's Introduction

A DES implementation

Usage:

    $ des  [-e|-d] -f <file> -k <key>

Key is 8 byte

In the encode mode, the file will be a stream of ASCII characters i.e, each visible character is read as a byte and the encrypted text is dumped as hex chars, therefore, in the decode mode, the file will be read as a stream of hex-chars, i,e each visible char as a nibble.

Example:

 ./des -e -k anitest1 -f adata.dat  > enc.dat
 ./des -d -k anitest1 -f enc.dat

Note:

Variable naming conventions are very awkward - that is to make it easier to understand when read with [2]

Source files:

des.c - is the complete implementation of the encode as well as decode, easily read when [2] is referred.

flblkread.c - is the file reader to slurp the whole file at one go, if the file is too large to be handled error may be thrown.

getopts.c - option handler

Tests:

Run a simple regression with regress.pl

References:

Wikipedia Main entry and the supplementary material in: [1] http://en.wikipedia.org/wiki/DES_supplementary_material

Excellent Description With Example: [2] http://orlingrabbe.com/des.htm

[3] http://www.tropsoft.com/strongenc/des.htm

des's People

Watchers

James Cloos avatar Aniruddha. A 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.