Skip to content

Instantly share code, notes, and snippets.

View zhanzhenzhen's full-sized avatar

Zhenzhen Zhan zhanzhenzhen

View GitHub Profile
a = ///
jfsld afjskld # jgidroj
fjalsk#{jf}djlk
///
b= "jfkalsdj"
c= /jafkldsj/
@zhanzhenzhen
zhanzhenzhen / sha256.coffee
Created July 1, 2014 14:39
SHA-256 in Wishlist
###
Copyright(c) Zhenzhen Zhan
MIT License
Why use SHA-256? Is it OK to use CRC32? My answer is:
The reason is for security. There's a potential issue if we use a weak checksum algorithm.
If the tests include "get info from the web", then attackers may have the ability to affect the units'
true/false results that lead to the same checksum.
These are "user"-caused collisions, which need to be avoided logically. In contrast,