Jump to content

How to use the Plugin SDK properly?


Recommended Posts

Yes, the problem is:

(dllHash.cpp)Line 124: Here do you call the "FileSHAEncrypt function"...

else if (i_Hash == 2) {s_Hash = FileSHAEncrypt(s_FileName);}

And check for errors here:

(JSsha.cpp) Line 97-98:

fIn = fopen(sFilename, "rb");

if(fIn == NULL) return false;

I'm not sure if your check against the NULL pointer works, if it does then you don't have any further check that takes care of the error anyway.. that's the reason for the crash.

I use to check if a file was found/opened successfully like this:

if (!file) return false;

...And you don't need to set: fIn = NULL; at line 127.

I have updated everything. It will error out if no file is input. As well as I added several other error checks.

I set fIn = NULL; on line 127 just to be safe. I didnt write the entire code myself. I have just come along and modified an Open Source SHA-1 class.

Check the link in my signature.

JS

AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...