JWT官网:
JSON Web Tokens - jwt.ioJSON Web Token (JWT) is a compact URL-safe means of representing claims to be transferred between two parties. The claims in a JWT are encoded as a JSON object that is digitally signed using JSON Web Signature (JWS).https://jwt.io/
一、克隆l8w8jwt到本地
git clone --recursive https://github.com/GlitchedPolygons/l8w8jwt.git
二、构建库文件
cd l8w8jwt/
bash build.sh
三、构建库文件
cd build/
make all && sudo make install
四、将库文件和头文件移动到系统目录下并更新动态库配置
sudo cp ./l8w8jwt/bin/release/libl8w8jwt.so /usr/lib -r
sudo cp ./l8w8jwt/build/l8w8jwt/include/l8w8jwt/ /usr/include -r
sudo ldconfig
五、环境配置完成,使用GCC命令需要加上选项-ll8w8jwt
gcc xxx.c -o xxx -ll8w8jwt