Coder Social home page Coder Social logo

bgoncharov / ft_ssl_md5 Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 170 KB

:octocat: The goal of the project to recreate part of the OpenSSL functionality, specifically the MD5 and SHA-256 hashing algorithms. OpenSSL is a cryptographic toolkit library written in C that is used to secure communications over computer networks.

C 96.93% Makefile 3.07%

ft_ssl_md5's Introduction

ft_ssl_md5

This prorgamm was a first project of security branch at 42 Silicon Valley. The goal was to recreate part of the OpenSSL functionality. OpenSSL is a cryptographic toolkit library written C that is used to secure communications over computer networks. It implements the Secure Sockets Layer (SSL) and Transport Layer Security (TLS) network protocols to protect against eavesdropping and verify identities during network communication.

Implemented functions for this project: MD5, SHA254, SHA256, SHA384, SHA512.

How to use

  1. Build

    make

  2. Launch

    ./ft_ssl command [command opts] [command args]

Usage

  • command: md5 sha224 sha256 sha384 sha512

  • command opts: [-pqr] [-s string] [files ...]

    • -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

Examples

./ft_ssl md5 -s "Hello World"

MD5 ("Hello World") = b10a8db164e0754105b7a99be72e3fe5

echo "Some important message" | ./ft_ssl sha256 -p -s "Hello World" Makefile

Some important message

31d1104978e7f73a0da6375f1b0d9add90bf96fbc5ef4dc9fb16804697ef2894

SHA256("Hello World")= a591a6d40bf420404a011733cfb7b190d62c65bf0bcda32b57b277d9ad9f146e

SHA256(Makefile)= 8f959d6ccc1e4127677099b0a0f99f85cf97e232eccc1def7c13e7437c2d9b2e

ft_ssl_md5's People

Contributors

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