Giter Site home page Giter Site logo

matubu / ft_ssl Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.62 MB

๐Ÿ” A custom C implementation of base64, des, md5, sha256, sha512, sm3 and rsa

Makefile 3.20% C 93.71% Shell 0.85% Python 2.03% Dockerfile 0.21%
base64 c des md5 sha256 sha512 sm3 rsa

ft_ssl's Introduction

ft_ssl

๐Ÿ” A custom C implementation of base64, des, md5, sha256, sha512, sm3 and rsa

Run old openssl version on nixos:

export NIXPKGS_ALLOW_INSECURE=1; nix-shell -p openssl_1_1

openssl rsault usage example:

echo -n 12345678 | openssl rsautl -inkey test_ft_pub -pubin -encrypt -raw | openssl rsautl -inkey test_ft -decrypt -raw

echo aaaaaaa | openssl rsautl -inkey test_ft -encrypt -raw | ./ft_ssl rsautl -inkey test_ft -decrypt
echo aaaaaaa | ./ft_ssl rsautl -inkey test_ft -encrypt | openssl rsautl -inkey test_ft -decrypt -raw

echo aaaaaaa | ./ft_ssl rsautl -inkey test_ft -encrypt | ./ft_ssl rsautl -inkey test_ft -decrypt

data too large for key size:

echo -ne "\xff\xff\xff\xff\xff\xff\xff\xff" | openssl rsautl -inkey test_ft -encrypt -raw
echo -ne "\xff\xff\xff\xff\xff\xff\xff\xff" | ./ft_ssl rsautl -inkey test_ft -encrypt

ft_ssl's People

Contributors

matubu avatar

Stargazers

 avatar

Watchers

 avatar

ft_ssl's Issues

[BUG] Bad Magic Number

openssl des-ecb -pbkdf2 -a -pass "pass:a" -in Makefile | ./ft_ssl des-ecb -a -p "a" -d

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.