TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Introducing the Tink cryptographic software library

96 pointsby helperover 6 years ago

7 comments

tptacekover 6 years ago
Tink competes with Nacl&#x2F;libsodium.<p>Tink is really great and more people should look at it. It&#x27;s (I think?) the successor to Keyczar, which was one of the first misuse-resistant crypto libraries.<p>Some ways in which Tink differs from Nacl:<p>* Its interfaces are in some ways better; for instance, it doesn&#x27;t punt nonces to the developer (a source of security issues with Nacl software).<p>* It has a coherent design based on security objectives, so that extensions to it make sense. For instance, instead of exposing random block cipher modes in a low-level interface, Tink maintains a notion of AEAD, streaming AEAD, and deterministic AEAD, and then has interfaces to add primitives that fulfill those objectives.<p>* Tink is natively (rather than through bindings) portable to Java, C++, and ObjC.<p>* Tink has a team of cryptographers maintaining it; that team includes Daniel Bleichenbacher, which is crazy and awesome.<p>Nacl is great, but more people should look at Tink.
评论 #17882242 未加载
评论 #17881046 未加载
JensRantilover 6 years ago
Ouch, my employer is named Tink (<a href="https:&#x2F;&#x2F;business.tink.se" rel="nofollow">https:&#x2F;&#x2F;business.tink.se</a>). We&#x27;re a Swedish&#x2F;European based fintech company offering data-driven banking APIs. This is bad for our SEO... :-)
vosperover 6 years ago
Could&#x2F;should this be cross-compiled to JS? I&#x27;ve been looking for something recently that lets me encrypt from a command-line tool and decrypt in the browser, preferably in a way that&#x27;s not too likely I&#x27;ll f- it up as a non-crypto-expert.<p>And, yes, I am aware of the common issues with doing crypto in the browser with JS libraries. And I&#x27;m aware of SubtleCrypto.
评论 #17882290 未加载
评论 #17882425 未加载
jeffreyrogersover 6 years ago
This looks interesting. I like that it doesn&#x27;t expose nonces when reuse is a vulnerability. That seems like a smart idea. Unfortunately, the C++ implementation doesn&#x27;t appear to support Windows yet. I&#x27;d be interested in using this for a cross-platform app I&#x27;ve been working on but that rules it out.
zokierover 6 years ago
As a non-crypto guy, I find it bit curious that &quot;Hybrid encryption&quot; primitive does not offer authentication. With the talk of being misuse resistant, that seems like bit of a sharp edge still.
评论 #17881213 未加载
__johnover 6 years ago
For those who didn&#x27;t know what AEAD is, it stands for Authenticated Encryption with Associated Data.<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Authenticated_encryption" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Authenticated_encryption</a>
tatersolidover 6 years ago
So... another crypto library with way too many choices for the average developer.<p>How about standardizing (RFC I guess) a single primitive of each type, and a strongly versioned set of serialization formats (including key storage).<p>That’s something a developer can’t misuse. Standardizing serialization formats and parsers are critical for developers to use this stuff correctly.<p>We can’t get rid of PKCS, X.509, and PGP and all their “algorithm agility” nonsense and insecurity until _somebody_ with industry clout replaces them with something secure and much simpler.<p>Google could do this... but instead we get Tink, a “choose your own adventure” just like the monthly alphabet soup produced by the IETF.<p>If GOOG&#x2F;MSFT&#x2F;Mozilla&#x2F;etc can build and standardize AV1 together they could do the same for crypto. It’s way easier.
评论 #17882663 未加载
评论 #17886450 未加载
评论 #17882857 未加载