I need a .NET DLL that encapsulates the Java MessageDigest() function. The Java MessageDigest() function produces a SHA1 one-way hash encryption of text and is typically used for the hash encryption of passwords. .NET has an equivalent SHA1 hash function also but the two are not compatible. The Java version uses 15 bit encoding while the .NET version uses 16 bit encoding. Thus passwords hash encrypted with one does not match the passwords encrypted by the other. So what I need is the Java MessageDigest() functionality compiled into a .NET DLL with a .NET wrapper around it so that I can call it from a .NET program. So that a .NET program can use the Java MessageDigest function to hash encrypt passwords.
Deliverables are:
1. .NET DLL and source code (C#) that wraps the Java MessageDigest function with a .NET callable wrapper. Attach this .NET DLL to a .NET program, pass it a text string (for a password), and it returns the Java SHA1 hash encrypted text back. That's all it needs to do.
2. Sample .NET program written in C# to call the DLL and demonstrate passing a text string password into it and displaying the hashed password from the DLL call.
3. Instructions or notes specifying any dependencies or requirements, such as the Java library version N.N.N must be installed and so on, in order to get the .NET DLL working.