microid AT lists.ibiblio.org
Subject: Microid mailing list
List archive
- From: "Eran Sandler" <eran AT yedda.com>
- To: <microid AT lists.ibiblio.org>
- Subject: [Microid] C#/.NET implementation for MicroID
- Date: Wed, 3 Jan 2007 21:11:09 +0200
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
Attachment:
genmicroid.zip
Description: Zip compressed data
- [Microid] C#/.NET implementation for MicroID, Eran Sandler, 01/03/2007
Archive powered by MHonArc 2.6.24.