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.

Saltpack – A modern crypto messaging format

180 pointsby remxabout 8 years ago

9 comments

jnwatsonabout 8 years ago
This is classic young-person-fails-to-understand-venerable-standard-so-he-reimplements-half-of-it.<p>Messagepack is schemaless and noncanonical. What that means is that a lot of the bounds&#x2F;field checking is pushed up to the application layer. I wouldn&#x27;t encode crypto with that (and I love Messagepack).<p>All the hate for ASN.1, yet it is among the most battle-tested specifications out there. Blaming ASN.1 for the shitty ASN.1 parsers written in the 80&#x27;s and 90&#x27;s is like blaming libsocket for all the network attacks.
gcrabout 8 years ago
This is the serialization protocol that Keybase uses. You can try this right now with `echo hello world | keybase encrypt username`
floatbothabout 8 years ago
MessagePack should be replaced with <a href="http:&#x2F;&#x2F;cbor.io" rel="nofollow">http:&#x2F;&#x2F;cbor.io</a> everywhere, as CBOR is an actual IETF RFC. Even if that kills the naming pun opportunity.
评论 #14067681 未加载
评论 #14067971 未加载
hoistbypetardabout 8 years ago
Does anyone have a link to a run-down on reasons to prefer this format over CMS? The community&#x27;s been iterating on that for ~20 years now (RSA PKCS#7, RFC 3852, RFC 5652, and a pile of other formats&#x2F;protocols built on top of these) and so far nothing is jumping out to make me think this is an improvement.
评论 #14069924 未加载
评论 #14069302 未加载
exabrialabout 8 years ago
Why don&#x27;t we have an emoji-like character yet for pgp begin message?
评论 #14067522 未加载
rektideabout 8 years ago
Not totally sure what BaseX is, how it compares versus Base64, especially post HTTP deflate compressions, but I&#x27;m not sure I like it. I&#x27;m pretty sure this kind of exercise is better left out, and that everyone should just use zstd on whatever encoding so as to decouple problem domains.<p>Round two of skepticism: msgpack is a niche player with no clear big corporate sponsor. Protobufs, flatbufs, and thrift are all actively making faster better quicker implementations, but I can not off the top of my head think of any major msgpack lovers. Avro also seems to just generally have some fast impls already, especially on platforms I care about[1], so credit there too. I ought review, but out of hand I can&#x27;t think of anything distinguishing about msgpack.<p>Definitely nice having <i>some</i> alternative to Salmon protocol[2] (as in Buzz, OStatus) on hand. Alas I believe it&#x27;s again fully encapsulating, versus say http signatures[3], where the signature is decoupled from the payload. It takes both types!! Neither is right.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;mtth&#x2F;avsc&#x2F;wiki&#x2F;Benchmarks" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mtth&#x2F;avsc&#x2F;wiki&#x2F;Benchmarks</a> [2] <a href="http:&#x2F;&#x2F;www.salmon-protocol.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.salmon-protocol.org&#x2F;</a> [3] <a href="https:&#x2F;&#x2F;tools.ietf.org&#x2F;html&#x2F;draft-cavage-http-signatures-06" rel="nofollow">https:&#x2F;&#x2F;tools.ietf.org&#x2F;html&#x2F;draft-cavage-http-signatures-06</a>
评论 #14070881 未加载
评论 #14070224 未加载
评论 #14069755 未加载
based2about 8 years ago
<a href="https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;crypto&#x2F;comments&#x2F;43ur46&#x2F;saltpack_an_aead_crypto_encoding_format_competing" rel="nofollow">https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;crypto&#x2F;comments&#x2F;43ur46&#x2F;saltpack_an_...</a>
评论 #14069050 未加载
ape4about 8 years ago
Every message starts with &quot;saltpack&quot;. That&#x27;s handy for TLAs.
btmillerabout 8 years ago
Great. We can now salt food, salt passwords, configure things using Salt(Stack), and now also use saltpack as a messaging format. Can we stop overloading the term &quot;salt&quot;? Makes it ridiculous to search for things on Google.
评论 #14068506 未加载
评论 #14070530 未加载