开发者

How do I create an identicon for email?

开发者 https://www.devze.com 2023-01-14 03:56 出处:网络
how to c开发者_如何学Goreate identicon for email with c#?The simplest solution would be to use Gravatar, Unicornify, or another free online identicon solution.

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

精彩评论

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