1
0
mirror of https://github.com/fumiama/simple-crypto.git synced 2026-06-11 06:00:24 +08:00

更改为lib

This commit is contained in:
fumiama
2021-05-29 13:58:23 +08:00
parent 5b2587f133
commit bd25ddf9f6
5 changed files with 120 additions and 63 deletions

View File

@@ -1,4 +1,26 @@
MD5
===
implementation of the MD5 algorithm written in C
# simple-md5-lib
Simple C lib of the MD5 algorithm
# Install
```bash
git clone https://github.com/fumiama/simple-md5-lib.git
cd simple-md5-lib
mkdir build
cd build
cmake ..
make
make install
```
# Usage
1. Include `simplemd5.h` in your c program.
```c
#include <simplemd5.h>
```
2. Call `md5` function. Don't forget to `free` the returned digest.
```c
uint8_t* md5(const uint8_t *data, size_t data_len);
```