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/
精彩评论