Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matubu/ft_ssl
🔐 A custom C implementation of sha256, sha512, base64, des, md5, sm3 and rsa
https://github.com/matubu/ft_ssl
base64 c des md5 rsa sha256 sha512 sm3
Last synced: 10 days ago
JSON representation
🔐 A custom C implementation of sha256, sha512, base64, des, md5, sm3 and rsa
- Host: GitHub
- URL: https://github.com/matubu/ft_ssl
- Owner: matubu
- Created: 2022-09-16T13:21:27.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-28T19:18:50.000Z (11 months ago)
- Last Synced: 2024-10-24T20:01:49.409Z (about 2 months ago)
- Topics: base64, c, des, md5, rsa, sha256, sha512, sm3
- Language: C
- Homepage:
- Size: 1.58 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ft_ssl
🔐 A custom C implementation of base64, des, md5, sha256, sha512, sm3 and rsaRun old openssl version on nixos:
```sh
export NIXPKGS_ALLOW_INSECURE=1; nix-shell -p openssl_1_1
```openssl rsault usage example:
```sh
echo -n 12345678 | openssl rsautl -inkey test_ft_pub -pubin -encrypt -raw | openssl rsautl -inkey test_ft -decrypt -rawecho 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 -rawecho aaaaaaa | ./ft_ssl rsautl -inkey test_ft -encrypt | ./ft_ssl rsautl -inkey test_ft -decrypt
```data too large for key size:
```sh
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
```