TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Botan: Crypto and TLS for Modern C++

98 点作者 klaussilveira5 个月前

8 条评论

tptacek5 个月前
If you don't know precisely why you want a library like this (and sometimes you do), you want libsodium instead.
评论 #42468845 未加载
评论 #42463899 未加载
评论 #42466143 未加载
thamer5 个月前
For what it&#x27;s worth, I&#x27;ve used Botan in a personal project where I needed a few hashing algorithms to verify file integrity (SHA-1, SHA-256, even MD5), and also used Botan&#x27;s base 64 decoder in the same project.<p>I found its modern &quot;style&quot; pleasant to write code for, and easy to integrate with good docs. That said, I did notice the large number of algorithms as others have pointed out, and I&#x27;m not sure I&#x27;d use it for more serious purposes when libsodium is well-established. It certainly wouldn&#x27;t be an obvious choice.<p>But to quickly add support for common hash algorithms in a small project, I thought it was a good option and enjoyed its API design and simplicity.
JanisErdmanis5 个月前
I personally don’t like that every single cryptography scheme is included in a single library. This creates a fake sense of powerfulness, but breaks down once some more complicated things need to be done such as zero knowledge proofs or homomorphic computations when it can become awkward at best. In a sensible language one makes seperate modules for hashing, cryptographic group library, pseudorandom number generation, cryptographic signatures, various zero knowledge proofs and TLS and uses package manager to install what one needs.
评论 #42463260 未加载
评论 #42463053 未加载
评论 #42463388 未加载
ch33zer5 个月前
A long list of supported hashes&#x2F;algorithms is imo an antipattern for crypto libraries. They should focus on being very obviously correct for a small set of supported algorithms. Crypto&#x27;s hard and this just increases the surface area.
评论 #42465145 未加载
评论 #42463440 未加载
评论 #42474337 未加载
评论 #42463727 未加载
mdaniel5 个月前
I first learned of it because KeePassXC uses it <a href="https:&#x2F;&#x2F;github.com&#x2F;keepassxreboot&#x2F;keepassxc&#x2F;blob&#x2F;2.7.9&#x2F;cmake&#x2F;FindBotan.cmake">https:&#x2F;&#x2F;github.com&#x2F;keepassxreboot&#x2F;keepassxc&#x2F;blob&#x2F;2.7.9&#x2F;cmake...</a>
评论 #42463482 未加载
mempko5 个月前
It&#x27;s a great, easy to learn library. I used it for Firestr
elintknower5 个月前
Are there any demos using this to sign requests on the ESP32 or similar embedded platforms?
评论 #42471098 未加载
gegabega5 个月前
Is there a Rust alternative?
评论 #42466943 未加载
评论 #42464766 未加载