Hiya Guys,
The VB.Netters will all be letting out a collective sigh at this one, while Classic ASP developers may be quite interested.
I'm working on a project with sensitive data stored in a database, for similar projects I would use RC4 two way encryption from a script similar to
this one to securely encrypt and decrypt the data using a password that I can specify.
The trouble is, I'm also working on a VB.Net 2008 application to read some of this data, which is incompatible with .Net 3.5 - Not the idea solution, one old Class ASP function writing to the database with one encryption method/function, reading it with another. You can imagine the problems associated with this, lots of data encrpted that can't be read!!
What I've done so far with my limited but quickly expanding (three weeks lol) experiance of VB.Net 2008 Express Edition is to try and make a DLL that I could register on the server, that both Classic ASP and my VB.Net Desktop Application can both use as a shared function.
First of all, is this the right way around of doing things, or am I missing a blinder here?
Secondly, I've done so much research on Google (and Yahoo frustratingly!) on creating a .Net 3.5 DLL that classic asp can use, the only links that were half useful related to earlier versions of the program (6.0), and much of the information/instructions/menu locations can't be found in the latest Express version.
Creating the DLL, I tried following
this example, but couldnt find the modern equivalent for 'Apartment Threaded', and the section '
Now let us add the reference Library. Open the Project -> Preferences, then select Active server Pages Object Library from the List of References appearing' just left me bewildered, I couldn't find that from the list of COM objects avaliable to reference, is it still required in 3.5?
The simple function I created to test if Classic ASP can talk to the DLL is as follows:
Code:
Public TestString As String
Function MakeTest(TestString)
MakeTest = TestString
End Function
So, in my Class ASP page, if I call the following code, it should output the same as it gets inputted:
Code:
Set foo = Server.CreateObject("myDllName.myDllForm")
bar = foo.MakeTest("It_Lives!")
On a seperate but linked matter, when I tried to regsvr32 my dll it says it couldnt find an entry point.. I guessed this was related to something missing/wrong in the code?
Help! What have I missed out?