Git Product home page Git Product logo

3des's Introduction

TDES (Triple Data Encryption Standard)

TDES is a symmetric key-block cipher which applies DES (Data Encryption Standard) three times with three different keys (k1, k2, k3). Like DES, the TDES structure is based on Feistel scheme.

Output

How TDES works ?

  • Encryption

Let:

  • S be a block of 64 bits size clear message
  • E(k,S) be an encrypting function with the key k
  • D(k,S) a decrypting function with the key k
  • k1, k2 and k3; three different keys (56 bits size each + 8 parity bits)

TDES(S)= E(k3,D(k2,E(k1,S))). (Encrypt with k1; Decrypt with k2 and Encrypt again with k3. The total key size is 112 bits).

  • Decryption

Decryption is the reverse operation:

Let C be the ciphertext obtained through the TDES operation.

S = D(k1,E(k2,D(k3,C))). (Decrypt with k3; Encrypt with k2 and Decrypt with k1).

How to run the program on linux (Debian based distro)

    1. Download the program.
    1. Open a terminal, go to the program folder.
    1. Type "make" to run the makefile program (compilation program).
    1. Type "./exe" to run the program and follow the instruction.

WARNING !!!

THE SOFTWARE IS UNDER MIT LICENSE AND IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND !!! TDES IS OFFICIALLY BEING RETIRED !!! THIS PROGRAM IS INTENDED FOR EDUCATIONAL PURPOSE, NOT FOR INDUSTRIAL USE !!!

MORE INFORMATION HERE: https://www.cryptomathic.com/news-events/blog/3des-is-officially-being-retired

3des's People

Contributors

andryrafam avatar

Stargazers

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