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.

Practical Cryptography With Go

106 pointsby damian2000about 11 years ago

5 comments

tptacekabout 11 years ago
I am not a fan of this book. I wrote a review of the book as an HN comment. I dislike this book so much that for the first time in the history of my use of HN, my comment overflowed the bounds for HN comments. So, here it is:<p><a href="http://pastebin.com/raw.php?i=NXgU30xK" rel="nofollow">http:&#x2F;&#x2F;pastebin.com&#x2F;raw.php?i=NXgU30xK</a><p>(as a Github gist:<p><a href="https://gist.githubusercontent.com/anonymous/3cc34251e501c2c8ffb7/raw/cf9ff4e7ce13985458b240980e91202ac732b4e6/Practical+Cryptography+in+Go+" rel="nofollow">https:&#x2F;&#x2F;gist.githubusercontent.com&#x2F;anonymous&#x2F;3cc34251e501c2c...</a>)
评论 #7582229 未加载
评论 #7581920 未加载
评论 #7581885 未加载
评论 #7583279 未加载
评论 #7584084 未加载
评论 #7582914 未加载
评论 #7582855 未加载
jfolkinsabout 11 years ago
I know Kyle personally. He is super smart, incredibly humble, and willing to teach. And I always admire anyone taking the initiative to try and produce something useful.<p>In response to Jabbles, this is from his (work in progress) book. Page 7.<p><pre><code> &#x2F;&#x2F; Implement the standard padding scheme for block ciphers. This &#x2F;&#x2F; scheme uses 0x80 as the first non-NULL padding byte, and 0x00 to &#x2F;&#x2F; pad out the data to a multiple of the block length as required. &#x2F;&#x2F; If the message is a multiple of the block size, add a full block &#x2F;&#x2F; of padding. Note that the message is copied, and the original &#x2F;&#x2F; isn&#x27;t touched. </code></pre> As anyone who has written technical material knows, your drafts tend to be error prone and you rely heavily on others to help catch your mistakes. Technical editors are the normal tool utilized by the traditional publishing world. As this is a leanpub book, I feel that the responsibility generally falls on the community. Those who have paid for the book and want to see it succeed.<p>I personally have purchased this book as well as reported errors to Kyle.<p>I&#x27;d encourage anyone with questions or comments to reach out to Kyle. He is quick to respond.<p><a href="http://www.kyleisom.net" rel="nofollow">http:&#x2F;&#x2F;www.kyleisom.net</a>
Jabblesabout 11 years ago
I can&#x27;t comment on the author&#x27;s cryptographic knowledge, but his Go seems non-idiomatic, and in some cases plain weird.<p>For example, this function stores the length of a slice in a variable, creates a new slice of the same length, copies all the bytes from the old to the new, then checks that the length of the new one is the same as the old (stored variable) - since it cannot have changed this check never fails. Hardly inspires confidence.<p><a href="https://github.com/kisom/gocrypto/blob/master/chapter2/chat/crypto.go#L43" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;kisom&#x2F;gocrypto&#x2F;blob&#x2F;master&#x2F;chapter2&#x2F;chat&#x2F;...</a>
评论 #7581578 未加载
评论 #7581423 未加载
cweagansabout 11 years ago
Books like this scare the hell out of me. People can&#x27;t even seem to use tried-and-true crypto libraries without screwing something up most of the time. Now you want them to write their own? This sounds like an absolute disaster waiting to happen.
评论 #7583455 未加载
评论 #7583274 未加载
zuraabout 11 years ago
Anyone can comment if this Free to read online but paid PDF&#x2F;EPUB download model works?