Skip to content
/ ft_ssl Public

[42 cursus] An introduction to cryptographic hashing algorithms and cipher blocks algorithm

Notifications You must be signed in to change notification settings

owalid/ft_ssl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wakatime

[42 cursus] An introduction to cryptographic hashing algorithms

Usage

Usage: ft_ssl algorithm [options] [file...]

Message Digest commands:
md5, sha224, sha256, sha384, sha512.

Cipher commands:
base64, des, des-ecb, des-cbc, des-ofb, des-ctr, des-cfb

Message Digest options:
Output options: 
-r      Reverse the format of the output.
-p      Echo STDIN to STDOUT and append the checksum to STDOUT.
-q      Quiet mode.
-s      Print the sum of the given string.
Parameters:
file Files to digest (optional; default is stdin).


Cipher options:
-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.
-o              Output file for message.
-p              Password in ascii is the next argument.
-P              Print the iv/key and exit.
-s              The salt in hex is the next argument.
-iter +int      Specify the iteration count. (default 4096)
-v              Initialization vector in hex is the next argument.

General options: 
-help   Display this summary
-list   List digests

DES

Legend

Key generation

Encryption loop

F function from encryption loop

Source

About

[42 cursus] An introduction to cryptographic hashing algorithms and cipher blocks algorithm

Topics

Resources

Stars

Watchers

Forks