Showing posts with label hash. Show all posts
Showing posts with label hash. Show all posts

Wednesday, March 7, 2012

Password hashes for SQL 7.0 & 2000

hi,
The password hashes generated by pwdencrypt() for SQL7.0 & SQL2000 are
different. The password hash generated for SQL 2000 stores both the actual
passsword & it's upper case version (David Litchfield's article on cracking
SQL passwords). But the passwor hash for SQL 7.0 is of 16 bytes only. I
wanted to use the pwdencrypt() to generate the password hashes but want to
verify the values without sending the 'pwdcompare()' query to server. I
could do it for SQL 2000 but the SQL 7.0 hashes seems to be different.
Thanks.
Ajey.Those undocumented xp shouldn't be used in production. They're not supported
and subject to change by MS without notice (which has been changed in the
past). If you're looking a way to hash your password, take a look at this
udf (courtesy of Steve Kass).
http://groups.google.co.uk/groups?q...58-E7ADEA79360F
-oj
"Ajey" <ajey5@.hotmail.com> wrote in message
news:OuaWKJ2BFHA.2568@.TK2MSFTNGP10.phx.gbl...
> hi,
> The password hashes generated by pwdencrypt() for SQL7.0 & SQL2000 are
> different. The password hash generated for SQL 2000 stores both the actual
> passsword & it's upper case version (David Litchfield's article on
> cracking
> SQL passwords). But the passwor hash for SQL 7.0 is of 16 bytes only. I
> wanted to use the pwdencrypt() to generate the password hashes but want to
> verify the values without sending the 'pwdcompare()' query to server. I
> could do it for SQL 2000 but the SQL 7.0 hashes seems to be different.
> Thanks.
> Ajey.
>

password hash

It seems like there is no built in procedure for making a password hash in
SQL2000. Am I wrong.
Do I have to make it from scratch myself or is there samples out there?

/Jens Ulrik"Jens U. K." <1jk2@.3bsopatent4.dk> wrote in message
news:i3t8d.3709$UU4.720@.news.get2net.dk...
> It seems like there is no built in procedure for making a password hash in
> SQL2000. Am I wrong.
> Do I have to make it from scratch myself or is there samples out there?
> /Jens Ulrik

That's correct - the usual solution is to encrypt/decrypt in the client
application using the Win32 CrpytoAPI, or some other suitable API, then
store only the encrypted password in the database:

http://www.sqlsecurity.com/DesktopDefault.aspx?tabid=22

Simon|||"Simon Hayes" <sql@.hayes.ch> wrote in message
news:41626a41$1_1@.news.bluewin.ch...
> "Jens U. K." <1jk2@.3bsopatent4.dk> wrote in message
> news:i3t8d.3709$UU4.720@.news.get2net.dk...
>> It seems like there is no built in procedure for making a password hash
>> in SQL2000. Am I wrong.
>> Do I have to make it from scratch myself or is there samples out there?
>>
>> /Jens Ulrik
> That's correct - the usual solution is to encrypt/decrypt in the client
> application using the Win32 CrpytoAPI, or some other suitable API, then
> store only the encrypted password in the database:

Hmm, it would have so easy with a stored procedure. Only problem is that
neither the SQL-server nor the HTTP-server are in my possesion. So
unfortunately I do not have access to "whatever" API I want :-( But as I
recall the provider have ASP.NET and I think there is some encryption
functions in there...

/Jens Ulrik|||The asp.net System.Web.Security.FormsAuthentication class contains a static
method for hashing passwords that you may find helpful:

string password = "god";
string passwordFormat = "sha1";

string encryptedPassword =
FormsAuthentication.HashPasswordForStoringInConfig File(password,passwordFormat);

"Jens U. K." <1jk2@.3bsopatent4.dk> wrote in message
news:3bu8d.4068$xP1.2605@.news.get2net.dk...
> "Simon Hayes" <sql@.hayes.ch> wrote in message
> news:41626a41$1_1@.news.bluewin.ch...
>>
>> "Jens U. K." <1jk2@.3bsopatent4.dk> wrote in message
>> news:i3t8d.3709$UU4.720@.news.get2net.dk...
>>> It seems like there is no built in procedure for making a password hash
>>> in SQL2000. Am I wrong.
>>> Do I have to make it from scratch myself or is there samples out there?
>>>
>>> /Jens Ulrik
>>
>> That's correct - the usual solution is to encrypt/decrypt in the client
>> application using the Win32 CrpytoAPI, or some other suitable API, then
>> store only the encrypted password in the database:
> Hmm, it would have so easy with a stored procedure. Only problem is that
> neither the SQL-server nor the HTTP-server are in my possesion. So
> unfortunately I do not have access to "whatever" API I want :-( But as I
> recall the provider have ASP.NET and I think there is some encryption
> functions in there...
> /Jens Ulrik

Password field (very important)

A collegue from me used the MySQL database before (I haven't done this before). He asked me, if it is possible to store a MD5 hash in a cell.

He telled me that MySQL has got a special function wich computes the hash value. Can someone help me?

Thanks for help

This isn't a MySQL forum so you're fairly unlikely to get an answer here.

-Jamie

|||Sorry for my bad writing. I've forgotten to ask, whether it is possible to make this with the MSSQL.|||

I don't know if its possible in SQL Server but its possible to do it in SSIS (this is a SSIS forum after all).

Donald Farmer's book has a chapter telling you how to generate MC5 values in SSIS. Search for it on Amazon.

-Jamie

Saturday, February 25, 2012

Password assign on linked server.

Hello,
Is it possible to know a password that was assign in the creation of a
linked server?
I have tha hash of the user password in Oracle and if i change user password
its possible to do the rollback. But in SQL Server if i need to rollback the
operation i dont know what was the old password.
Thanks and best regards.
Is it not possible for you to change the password of the account that
the Linked Server is using to connect with? You don't need to know the
previous password to change it. Obviously this may not be feasible in
your environment but I don't know of how you can retrieve the password
directly.
ALI
|||Hi Ali,
I need to know the password before change it because it might be possible
that i need to rollback this operation. So to change the password i need to
know what is the older password.
Thanks and best regards.
"zashah@.gmail.com" wrote:

> Is it not possible for you to change the password of the account that
> the Linked Server is using to connect with? You don't need to know the
> previous password to change it. Obviously this may not be feasible in
> your environment but I don't know of how you can retrieve the password
> directly.
> ALI
>

Password assign on linked server.

Hello,
Is it possible to know a password that was assign in the creation of a
linked server?
I have tha hash of the user password in Oracle and if i change user password
its possible to do the rollback. But in SQL Server if i need to rollback the
operation i dont know what was the old password.
Thanks and best regards.Is it not possible for you to change the password of the account that
the Linked Server is using to connect with? You don't need to know the
previous password to change it. Obviously this may not be feasible in
your environment but I don't know of how you can retrieve the password
directly.
ALI|||Hi Ali,
I need to know the password before change it because it might be possible
that i need to rollback this operation. So to change the password i need to
know what is the older password.
Thanks and best regards.
"zashah@.gmail.com" wrote:
> Is it not possible for you to change the password of the account that
> the Linked Server is using to connect with? You don't need to know the
> previous password to change it. Obviously this may not be feasible in
> your environment but I don't know of how you can retrieve the password
> directly.
> ALI
>

Password assign on linked server.

Hello,
Is it possible to know a password that was assign in the creation of a
linked server?
I have tha hash of the user password in Oracle and if i change user password
its possible to do the rollback. But in SQL Server if i need to rollback the
operation i dont know what was the old password.
Thanks and best regards.Is it not possible for you to change the password of the account that
the Linked Server is using to connect with? You don't need to know the
previous password to change it. Obviously this may not be feasible in
your environment but I don't know of how you can retrieve the password
directly.
ALI|||Hi Ali,
I need to know the password before change it because it might be possible
that i need to rollback this operation. So to change the password i need to
know what is the older password.
Thanks and best regards.
"zashah@.gmail.com" wrote:

> Is it not possible for you to change the password of the account that
> the Linked Server is using to connect with? You don't need to know the
> previous password to change it. Obviously this may not be feasible in
> your environment but I don't know of how you can retrieve the password
> directly.
> ALI
>