Unless I'm lacking sleep and miss something (likely), you could make an overload that took an enum, such as the pre-existing ones in the framework.
----- Keith J. Farmer // [EMAIL PROTECTED] -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Shawn Farkas Sent: Thursday, 26 January 2006 09:08 If you wanted to easily extend it to other algorithms, then instead of using MD5.Create() in your __init__, you could instead do HashAlgorithm.Create("MD5"). That allows you to swap in any hash algorithm you'd like (and that the framework supports) just by swapping the string. _______________________________________________ users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
