Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Ask HN: 15 lines of code to represent yourself.
function digest(s) --return crc32(s)..adler32(s) --return hmac_sha1(pass,s) return sha1(s) end
function phe_encode(s) t = {} for i = 1, #s do t[i] = digest(s:sub(1,i)) end return t end
There are no comments on this comment yet.
function digest(s) --return crc32(s)..adler32(s) --return hmac_sha1(pass,s) return sha1(s) end
function phe_encode(s) t = {} for i = 1, #s do t[i] = digest(s:sub(1,i)) end return t end