Ask a Question related to ASP.NET Security, Design and Development.
-
Eliyahu Goldin #1
Generating hash value
Following Microsoft recommendations, I'd like to store a one-way passport
hash of a user's password. .NET provides method
FormsAuthentication.HashPasswordForStoringinConfig File (...) to generate a
hash value with either SHA1 or MD5 algorithm. My problem is that the
password is to be generated on a workstation with no .NET installed. How can
I generate a hash value without .NET in the same way as
HashPasswordForStoringinConfigFile does? Is there any sequence of Windows
Crypto API calls with the same effect? An external stored procedure on the
server side?
Eliyahu
Eliyahu Goldin Guest
-
Generating PDF from XLS
Hi, I am trying to generate PDF document from an XLS using Distiller API. In Excel, I have set the page size as A4. However, the generated PDF is... -
hash of hash of array slices
This works Foreach ( @{$hash{$key1}{$key2}} ) This does note Foreach ( @{($hash{$key1}{$key2})} ) This gives me this error .... Can't... -
Sort a hash based on values in the hash stored as arrays of hashes
Hmm. I'm not quite sure if I got the subject right, but I'll try to explain. :-) I've got a hash of elements stored like this: $VAR1 = {... -
Another reference question (hash of hash references)
beginners, I am trying to build a hash of hash references. My problem is that I need to be able to add a key/value pair to the internal hashes...... -
SAR sa2 not generating reports
My system activity reports are no longer being generated. Here's the setup: cron says : 0,15,30,45 * * * * /usr/lib/sa/sa1 So every 15... -
Michel Gallant #2
Re: Generating hash value
Yes, CryptoAPI supports calculating hashes using functions:
CryptCreateHash
CryptHashData
CryptGetHashParam (with dwParam = HP_HASHVAL to get actual hash buffer)
Start here:
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/security/security/data_hashes.asp[/url]
The byte order in the capi buffer returned is identical to data in .NET
HashPasswordForStoringinConfigFile string.
You only need to convert the byte buffer into an ordered hex-string to match the .NET hash string.
- Michel Gallant
MVP Security
"Eliyahu Goldin" <removemeegoldin@monarchmed.com> wrote in message
news:Orw0CVVzDHA.2932@TK2MSFTNGP09.phx.gbl...> Following Microsoft recommendations, I'd like to store a one-way passport
> hash of a user's password. .NET provides method
> FormsAuthentication.HashPasswordForStoringinConfig File (...) to generate a
> hash value with either SHA1 or MD5 algorithm. My problem is that the
> password is to be generated on a workstation with no .NET installed. How can
> I generate a hash value without .NET in the same way as
> HashPasswordForStoringinConfigFile does? Is there any sequence of Windows
> Crypto API calls with the same effect? An external stored procedure on the
> server side?
>
> Eliyahu
>
>
Michel Gallant Guest
-
Andy #3
Re: Generating hash value
> Crypto API calls with the same effect? An external stored procedure on the
you can use XP_CRYPT ([url]www.activecrypt.com[/url]). Free version supports SHA1, MD5> server side?
and DES hashes without limitations.
Andy Guest
-
Eliyahu Goldin #4
Re: Generating hash value
Thanks Michel and Andy,
Your answers are exactly what I need.
Eliyahu
Eliyahu Goldin Guest



Reply With Quote

