Tongsuo Python SDK
Project description
tongsuo-python-sdk
铜锁Python开发套件基于Tongsuo密码库, 为Python应用提供密码学原语和安全传输协议的支持,目前以支持中国商用密码算法和安全协议为主。
功能特性
- 支持SM2签名和验签
- 支持SM3杂凑算法
- 支持SM4加解密,包括ECB、CBC、OFB、CFB、CTR模式
- 支持SM4-GCM和SM4-CCM
- [TODO] TLCP协议支持
安装
Linux、MacOS安装示例:
# 先安装铜锁,下载源码包或者使用git仓库代码
wget https://github.com/Tongsuo-Project/Tongsuo/archive/refs/tags/8.3.2.tar.gz
tar xzvf 8.3.2.tar.gz
pushd Tongsuo-8.3.2
./config enable-ntls --prefix=/usr/local/tongsuo -Wl,-rpath=/usr/local/tongsuo/lib
make -j
make install
popd
# 设置TONGSUO_HOME环境变量:
export TONGSUO_HOME=/usr/local/tongsuo
pip install tongsuopy
文档
交流群
欢迎加入铜锁社区交流群,使用钉钉扫描二维码或者钉钉内搜索群号44810299。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tongsuopy-0.0.1.dev0-cp311-cp311-macosx_10_9_universal2.whl.
File metadata
- Download URL: tongsuopy-0.0.1.dev0-cp311-cp311-macosx_10_9_universal2.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.11, macOS 10.9+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2fa7e9cbd0180d82d2728270394231918ac01d5bdd8f1e949da0e5aa4a719e04
|
|
| MD5 |
6d3d3fc1149fff39ab12719b460655d9
|
|
| BLAKE2b-256 |
778d30d80432905d9ce0d4edf154d1f5cec04fef3aca8aeb83d65fd16ad9ce2e
|