Create a COM-Accessible VB.NET Library
Step 1. Create a New Project
Open Visual Studio and create a new VB class library project called MyFips140Crypto.
Step 2. Add the Code
Rename Class1 to SHA and add the following code:
Step 3. Enable COM
To enable COMM support for this DLL, open the project properties and click the Assembly Info button. Fill in the dialog any way you want, but make sure that COM Enabled is checked.
Step 4. Give It a Strong Name
What is this?
Step 5. Build It
Build the project.
Step 6. Register It
Open Visual Studio 2005 Command Prompt. It is one of the tools that comes standard with Visual Studio.