samuel-lucas6/Geralt

GitHub: samuel-lucas6/Geralt

基于 libsodium 的 .NET 8+ 现代密码学库,以简洁 opinionated 的 API 提供加密、哈希、签名和密钥交换等安全原语。

Stars: 62 | Forks: 4

# Geralt [![维护状态](https://img.shields.io/badge/maintained-yes-brightgreen)](https://github.com/samuel-lucas6/Geralt) [![许可证](https://img.shields.io/badge/License-MIT-red.svg)](https://github.com/samuel-lucas6/Geralt/blob/main/LICENSE) [![NuGet](https://img.shields.io/badge/nuget-latest-blue)](https://www.nuget.org/packages/Geralt) [Geralt](https://www.geralt.xyz/) 是一个基于 [libsodium](https://doc.libsodium.org/) 并受 [Monocypher](https://monocypher.org/) 启发,专为 [.NET 8+](https://dotnet.microsoft.com/en-us/download/dotnet) 设计的现代密码学库。 - **简单**:易于学习的 API,采用具有描述性的命名。在可能的情况下,每个任务只提供一种算法。 - **现代**:最新且优秀的密码学算法,如 AEGIS-128L/AEGIS-256、(X)ChaCha20-Poly1305、BLAKE2b、Argon2id、X25519 和 Ed25519。 - **安全**:libsodium 曾在 2017 年通过[审计](https://www.privateinternetaccess.com/blog/libsodium-audit-results/),是[许多](https://doc.libsodium.org/libsodium_users)项目甚至大型企业的[首选](https://doc.libsodium.org/libsodium_users#companies-using-libsodium)库。 - **快速**:libsodium 比许多其他密码学库[更快](https://monocypher.org/speed)。此外,Geralt 使用 [Span<T>](https://docs.microsoft.com/en-us/archive/msdn-magazine/2017/connect/csharp-all-about-span-exploring-a-new-net-mainstay) 缓冲区来避免内存分配。 有关更多信息,请访问以下链接: | | | |:------------------------- |:--------------------------------------------------- | | 文档: | https://www.geralt.xyz/ | | 安装: | https://www.geralt.xyz/#installation | | 待处理问题: | https://github.com/samuel-lucas6/Geralt/issues | | 讨论区: | https://github.com/samuel-lucas6/Geralt/discussions | | 拉取请求: | https://github.com/samuel-lucas6/Geralt/pulls |
标签:AEGIS, Argon2id, BLAKE2b, ChaCha20-Poly1305, CVE, DNS 反向解析, Ed25519, libsodium, MIT协议, Monocypher, .NET 8, NuGet, Span<T>, X25519, 加密库, 哈希算法, 密码学, 密钥交换, 开源库, 手动系统调用, 搜索引擎爬虫, 数字签名, 数据加密, 网络安全, 隐私保护, 零内存分配