Roboposter 2048

                
Did you know you can use asciibots.js to generate unique avatars?

It's kind of like identicons. Just take a hash of the username and use 5 characters of the hash for each poster's unique robo id.
Replytron

                
I don't get it.
Roboposter 2048

                
For example, this page generates all the avatars from the usernames like this:
/* take an md5 hash of the username (here using CryptoJS) */
var hash = CryptoJS.MD5(username).toString(CryptoJS.enc.Hex);

/* take 5 characters from the hash as our id*/
var botId = hash.slice(-5);

/* call .asciibot() with our id. */
$(".bot", this).asciibot(botId);
                    
Replytron

                
Cool.

Fork me on GitHub