Giter Site home page Giter Site logo

s-des-decryption's Introduction

S-DES Decryption

Implementation of Simplified Data Encryption Standard Algorithm in C Language

Until the introduction of Advanced Encryption Standard (AES) in 2001, the Data Encryption Standard (DES) was the most widely used encryption schemes. DES was issued in 1977 by NIST, as FIPS-46.

DES encrypts 64-bit blocks using a 56-bit key and produces 64-bit ciphertext through a series of steps.

S-DES or Simplified Data Encryption Standard is a simplified version of DES algorithm which is a block cipher that inputs 8-bit plaintext or ciphertext and uses 10-bit key for encryption and decryption. S-DES was designed for educational purposes only, to help students learn about modern cryptanalytic techniques. SDES has similar properties and structure as DES, but has been simplified to make it much easier to perform encryption and decryption by hand with pencil and paper.

The Decryption Processing of plaintext proceeds in 3 phases:-

  1. First, the ciphertext passes through an initial permutation (IP) that rearranges the bits to produce permutted output.

  2. The permutted output is then passed through 16 rounds of both Permutation and Substitution functions. The left and right halves of output are swapped to produce the preoutput.

  3. Finally, preoutput is passed through a permutation (IP-1) that is inverse of initial permutation function, to produce plaintext.

The key is passed through a permutation function. Then a subkey is produced for each 16 rounds by combination of left circular swift and a permutation. The permutation function is the same for every round, but a different subkey is produced because of the repeated shifts of key bits.

DES ENCRYPTION AND DECRYPTION PROCESS

KEY GENERATION

s-des-decryption's People

Contributors

swapnilchokshi avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

spentcord

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.