GithubHelp home page GithubHelp logo

ft_ssl_des's Introduction

FT_SSL

An introduction to cryptographic hashing algorithms and symmetric encoding and encryption

hasing:

md5 - sha256

Encrypt:

base64 - des - des-ecb - des-cbc - des-cfb - des-ctr - des-pcbc

Usage:

usage:
./ft_ssl <md5|sha256|des|des-ecb|des-cbc|des-cfb|des-ctr|des-pcbc> [options] file ...
Standard commands:

Standard options:
 -h: help.

Message Digest commands:
 md5: to use the md5 message digest algorithm.
 sha256: to use the sha256 message digest algorithm.

Message Digest options:
 -D: debug, print chuck.
 -p: echo STDIN to STDOUT and append the checksum to STDOUT.
 -q: quiet mode.
 -r: reverse the format of the output.
 -s: print the sum of the given string.

Cipher commands:
 base64
 des (des-cbc)
 des-ecb (Electronic Code Book)
 des-cbc (Cipher Block Chaining)
 des-cfb (Cipher Feedback)
 des-ctr (CounTeR)
 des-pcbc (Propagating Cipher Block Chaining)

Cipher options:
base64:
 -d: decode mode.
 -e: encode mode.
 -i: input file.
 -o: output file.
des*:
 -a: decode/encode the input/output in base64,depending on the encrypt mode.
 -d: decrypt mode.
 -e: encrypt mode (default).
 -i: input file for message.
 -k: key in hex is the next arguement.
 -o: output file for message.
 -p: password in ascii is the next argument.
 -P: print the Vector/Key/Salt/Pass
 -s: the salt in hex is the next argument.
 -v: initialization vector in hex is the next argument.

works like standard OPENSSL

~/ft_ssl_des(master) » cat my_file
Hello world

~/ft_ssl_des(master) » ./ft_ssl des-ecb -p coucou -s 123 -i my_file -o encrypted_file

~/ft_ssl_des(master*) » cat encrypted_file
Salted__0M�C���,:&s<*ϰ%

~/ft_ssl_des(master*) » openssl des-ecb -d -k coucou -S 123 -in encrypted_file
Hello world

ft_ssl_des's People

Contributors

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