Zurück zum Ranking

Tongsuo-Project/Tongsuo

Ctongsuo.net

铜锁/Tongsuo is a Modern Cryptographic Primitives and Protocols Library

cryptographytlspkichinese-cipherssecurity
Sterne-Wachstum
Sterne
1.5k
Forks
258
Wochenwachstum
Issues
147
5001k1.5k
Sept. 2020Aug. 2022Aug. 2024Juli 2026
README

OpenAtom 铜锁/Tongsuo

tongsuo logo

github actions ci badge Coverage Status GitHub Release GitHub Downloads (all assets, all releases)

铜锁/Tongsuo是一个提供现代密码学算法和安全通信协议的开源基础密码库,为存储、网络、密钥管理、隐私计算等诸多业务场景提供底层的密码学基础能力,实现数据在传输、使用、存储等过程中的私密性、完整性和可认证性,为数据生命周期中的隐私和安全提供保护能力。

铜锁获得了国家密码管理局商用密码检测中心颁发的商用密码产品认证证书,助力用户在国密改造、密评、等保等过程中,更加严谨地满足我国商用密码技术合规的要求。可在此处下载资质原始文件。

特性

铜锁提供如下主要的功能特性:

  • 技术合规能力
    • 符合 GM/T 0028《密码模块安全技术要求》的"软件密码模块安全一级"资质
    • 符合 GM/T 0005-2021《随机性检测规范》
  • 零知识证明(ZKP)
  • 密码学算法
    • 中国商用密码算法:SM2、SM3、SM4、祖冲之
    • 国际主流算法:ECDSA、RSA、AES、SHA等
    • 同态加密算法:EC-ElGamalPaillier
    • 后量子密码学:ML-KEM(Kyber)、ML-DSA(Dilithium)、SLH-DSA(SPHINCS+)等
  • 安全通信协议

典型应用

开源应用(Opensource Application)

  • Angie, Angie是一个可以替换掉NGINX的新型Web服务器,我们建议使用铜锁的用户优先选择Angie (We highly recommend you to replace NGINX with Angie to enable Tongsuo's functionality)
  • Apache APISIX
  • Tengine
  • g3proxy,正向代理&基础反向代理
  • g3bench,HTTPS/H2/TLS握手等压测

商业应用 (Commercial Application)

  • 支付宝App
  • OceanBase数据库
  • 阿里云
  • 天威诚信

编译和安装

一般来说,典型的编译和安装过程如下:

./config --prefix=/path/to/install/dir
make
make install

如果是Windows,则需要:

perl Configure enable-ntls
nmake
nmake install

以上将会安装铜锁的头文件、library文件和铜锁二进制程序。如果需要在独立的build目录中编译铜锁以保证源代码仓库的整洁,则可以:

cd tongsuo-build
/path/to/Tongsuo/source/config --prefix=/path/to/dest
make
make install

目前铜锁支持的操作系统有:各种Linux发行版、macOS、Android、iOS和Windows。在这些操作系统上,还需要事先准备好对应的环境:

  • make
  • Perl 5,以及Text::Template模块
  • C编译器
  • C库

铜锁对第三方库的依赖很少,但是目前依然对Perl依赖较大。

如果希望执行自动化测试用例,则需:

make test

在安装的时候,可以选择只安装library文件:

make install_runtime_libs

如果还需要安装头文件以便于基于铜锁开发应用程序,则可以:

make install_dev

也可以只安装铜锁二进制程序和其依赖的铜锁library文件:

make install_programs

铜锁的Configure脚本提供了大量的用于开关各种特性的选项。一般来讲,使用enable-xxx做为对某个特性的开启,而使用no-xxx来关闭某个特性。例如,enable-ntls即开启TLCP,而no-rsa则是不编译RSA算法。

文档

铜锁的相关文档组织在 铜锁文档网站 上。

交流合作

铜锁使用钉钉群进行用户答疑和交流,钉钉群号:44810299

欢迎关注铜锁公众号,获取最新的铜锁动态:

tongsuo public qr

声明

铜锁/Tongsuo 是由开放原子开源基金会(OpenAtom Foundation)孵化及运营的开源项目。

OpenAtom Foundation

报告安全缺陷

铜锁目前使用蚂蚁集团的威胁搜集系统,请访问如下地址进行安全缺陷的报告:

注意:对于非安全相关的Bug,请使用GitHub的Issues进行提交。

Ähnliche Repositories
bitcoin/bitcoin

Bitcoin Core integration/staging tree

C++MIT Licensebitcoinc-plus-plus
bitcoincore.org/en/download
89.7k39.1k
TheAlgorithms/JavaScript

Algorithms and Data Structures implemented in JavaScript for beginners, following best practices.

JavaScriptnpmGNU General Public License v3.0algorithmalgorithm-challenges
the-algorithms.com/language/javascript
34.2k5.9k
anoma/anoma

Reference implementation of Anoma

ElixirMIT Licensecryptographyblockchain
anoma.net
33.7k4.1k
openssl/openssl

General purpose TLS and crypto library

CApache License 2.0cryptographyopenssl
openssl-library.org
30.5k11.4k
bee-san/Ciphey

⚡ Automatically decrypt encryptions without knowing the key or cipher, decode encodings, and crack hashes ⚡

Rustcrates.ioMIT Licensedecryptionnatural-language-processing
21.5k1.4k
amark/gun

An open source cybersecurity protocol for syncing decentralized graph data.

JavaScriptnpmOthermachine-learningartificial-intelligence
gun.eco/docs
19.1k1.2k
Ciphey/Ciphey

⚡ Automatically decrypt encryptions without knowing the key or cipher, decode encodings, and crack hashes ⚡

PythonPyPIMIT Licensedecryptionnatural-language-processing
18.8k1.2k
javascript-obfuscator/javascript-obfuscator

A powerful obfuscator for JavaScript and Node.js

TypeScriptnpmBSD 2-Clause "Simplified" Licensejavascript-obfuscatorobfuscation
obfuscator.io
16.2k1.7k
cryptomator/cryptomator

Cryptomator for Windows, macOS, and Linux: Secure client-side encryption for your cloud storage, ensuring privacy and control over your data.

JavaMavenGNU General Public License v3.0cryptomatorjava
cryptomator.org
15.7k1.4k
zama-ai/bounty-program

Zama Bounty Program: Contribute to the FHE space and Zama's open source libraries and get rewarded 💰

bounty-programcryptography
zama.ai
15.3k439
jedisct1/libsodium

A modern, portable, easy to use crypto library.

COthercryptocryptography
libsodium.org
13.8k1.9k
tink-crypto/tink

Tink is a multi-language, cross-platform, open source library that provides cryptographic APIs that are secure, easy to use correctly, and hard(er) to misuse.

JavaMavenApache License 2.0cryptographyjava
developers.google.com/tink
13.5k1.2k