Here is the source for the object n_cst_crypto, which comes from the article I mentioned, except the function of_hash_a_password, which we modified:
-----------------------------------------------
forward
global type n_cst_crypto from nonvisualobject
end type
end forward
global type...
I was able to get this to work. If anyone wants to try this, I found the missing values in the Microsoft documentation and on the WEB.
Add instance variables:
Constant ulong CALG_SHA = 32772
Constant ulong HP_HASHVAL = 2
The convert function didn't exist in my installation, so I wrote one...
I'm trying to hash a user password with the SHA-1 algorithm
by calling the Microsoft Crypto API.
I found an article about it with some sample code at http://pbdj.sys-con.com/read/42540.htm.
I'm able to make the calls to the API, but the data I get back is not what I expect. I'm sure I've...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.