[Microid] C#/.NET implementation for MicroID

Eran Sandler eran at yedda.com
Wed Jan 3 14:11:09 EST 2007


Hey,

To complete the set of sample that we have, this is a C#/.NET implementation
for MicroID.

It is a bit more generic and can be used with any hashing algorithm
currently supported in .NET (SHA1, SHA256, MD5, etc).
The zip contains the class MicroID with a static function to either generate
an SHA1 based MicroID (the default) or specify the name of the hashing
algorithm.

It also converts the text to ASCII (so the hashing will work the same as in
Python, PHP, etc).

The sample provided can get as the last parameter the name of the hashing
algorithm (so you can run it with MD5, SHA256 ,etc).
So running:

genmicroid xmpp:stpeter at jabber.org https://www.xmpp.net/ sha256

will generate a SHA256 based MicroID and SHA1 will do the same with SHA1.

Enjoy,
Eran
-------------- next part --------------
A non-text attachment was scrubbed...
Name: genmicroid.zip
Type: application/x-zip-compressed
Size: 41069 bytes
Desc: not available
Url : http://lists.ibiblio.org/pipermail/microid/attachments/20070103/5f5d4db9/attachment-0001.bin 


More information about the Microid mailing list