Hacker News new | past | comments | ask | show | jobs | submit login

Pretty icons. I like the favicon-like colors and aesthetic better than the geometric identicon/gravatar badges.

Do you mind elaborating on this comment from your hash icon site?

- Using the hash to seed a PRNG decouples pattern generation from precise details about the amount of available state.

Are you trying to avoid embedding the hash (steganographically) within the hash icon's pixels?




no, no - nothing that clever.

i just meant that rather than using the hash as a direct source of randomness, and generating the image from that, it is easier to use the hash to seed a random number generator and use the random numbers from the generator.

maybe it's obvious, but at first i was trying to use the hash directly, and kept being constrained by the amount of available data.

but if you do that in a security-aware context (originally this was for hashing user names, so security was not an issue) you need to worry about how much state the random number generator has. it has to be large enough to cover the minimum of (all distinguishable images, original hash). so if you had a random number with a byte of state, then that would be no good (unless the image was a single grey-scale pixel).


> i was trying to use the hash directly, and kept being constrained by the amount of available data.

Too much data from the hash? It seems like a 256-bit SHA-2 hash could map 1:1 onto a 16x16 pixel icon, giving you 24-bits of color depth per pixel to encode each hash bit in a non-ugly way.


the approach i use gives the "same" image, even when pixel sizes and numbers change.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: