开发者

How do I create an identicon for email?

how to c开发者_如何学Goreate identicon for email with c#?


The simplest solution would be to use Gravatar, Unicornify, or another free online identicon solution.

Otherwise:

  • Hash the e-mail address, for example by xor-ing all letters together.
  • Encode this to some small set of numbers, for example 8 numbers between 0 and 15.
  • Use each number in some way in the image. For example, one or two number for color, a number for size or shape of some part of the image, etc.


Have a look at http://identicon.codeplex.com/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜