473,396 Members | 2,039 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

salted md5 hash

How can I get hash value for a specified string with specified salt? There
are some md5 implementations under System.Security.Crptography but I could
not find anything about salted md5 algorithm.
Nov 16 '05 #1
7 2946
Try the
FormsAuthentication.HashPasswordForStoringInConfig File method.

This does not salt the string. So you need to salt the string before creating the hash and then store the salt along with the hashed pwd for retrival.

--
Rakesh Rajan
"Sýfýrýncý Murat" wrote:
How can I get hash value for a specified string with specified salt? There
are some md5 implementations under System.Security.Crptography but I could
not find anything about salted md5 algorithm.

Nov 16 '05 #2
thank you, it was a good pointer tor start from.

another question : that method generates long hash values, i do not know the
name of the format but i need shorter hashes, is there any option for this?
"Rakesh Rajan" <Ra*********@discussions.microsoft.com> wrote in message
news:65**********************************@microsof t.com...
Try the
FormsAuthentication.HashPasswordForStoringInConfig File method.

This does not salt the string. So you need to salt the string before creating the hash and then store the salt along with the hashed pwd for
retrival.
--
Rakesh Rajan
"Syfyryncy Murat" wrote:
How can I get hash value for a specified string with specified salt? There are some md5 implementations under System.Security.Crptography but I could not find anything about salted md5 algorithm.

Nov 16 '05 #3
If you need a shorter hash why don't you use CRC32 or Adler32?

--
cody

Freeware Tools, Games and Humour
http://www.deutronium.de.vu || http://www.deutronium.tk
"Sıfırıncı Murat" <@> schrieb im Newsbeitrag
news:ud**************@TK2MSFTNGP12.phx.gbl...
thank you, it was a good pointer tor start from.

another question : that method generates long hash values, i do not know the name of the format but i need shorter hashes, is there any option for this?

"Rakesh Rajan" <Ra*********@discussions.microsoft.com> wrote in message
news:65**********************************@microsof t.com...
Try the
FormsAuthentication.HashPasswordForStoringInConfig File method.

This does not salt the string. So you need to salt the string before

creating the hash and then store the salt along with the hashed pwd for
retrival.

--
Rakesh Rajan
"Syfyryncy Murat" wrote:
How can I get hash value for a specified string with specified salt? There are some md5 implementations under System.Security.Crptography but I could not find anything about salted md5 algorithm.


Nov 16 '05 #4
ok, that might be a better idea but i just have to use md5.

I'm using a Serv-u FTP software on a server. Serv-u stores user passwords in
an ini file, with salted md5 encryption. I'm trying to implement an
automated system to create user accounts and this system will append new
account informaiton at the end of the serv-u ini file. The details of the
encryption and manually entering user info to the ini file are explained
here :

http://rhinosoft.com/KBArticle.asp?RefNo=1177&prod=su
This is the reason why i want to use salted MD5. Although the example in the
above link uses a long hash value, the actual ini file contains shorter ones
like ermm.. Here try the salted md5 algorithm at this link
http://www.n3dst4.com/network/crypter . Try hashing 12345678 with salt "ab".
The product is "ab1iBa.N.U2C6" which is in the form I have been looking for.
The MD5 hash is "5d55ad283aa400af464c76d713c07ad" but I'm not looking for
this.
Nov 16 '05 #5
ok, that might be a better idea but i just have to use md5.

I'm using a Serv-u FTP software on a server. Serv-u stores user passwords in
an ini file, with salted md5 encryption. I'm trying to implement an
automated system to create user accounts and this system will append new
account informaiton at the end of the serv-u ini file. The details of the
encryption and manually entering user info to the ini file are explained
here :

http://rhinosoft.com/KBArticle.asp?RefNo=1177&prod=su
This is the reason why i want to use salted MD5. Although the example in the
above link uses a long hash value, the actual ini file contains shorter ones
like ermm.. Here try the salted md5 algorithm at this link
http://www.n3dst4.com/network/crypter . Try hashing 12345678 with salt "ab".
The product is "ab1iBa.N.U2C6" which is in the form I have been looking for.
The MD5 hash is "5d55ad283aa400af464c76d713c07ad" but I'm not looking for
this.
Nov 16 '05 #6
maybe you can use int.Parse() to parse each byte of the string (2 digits are one hex byte) and put all resulting numbers in a byte[] array then use Convert.ToBase64CharArray() to convert it to the form you want.

--
cody

[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk
"Sıfırıncı Murat" <@> schrieb im Newsbeitrag news:uh**************@tk2msftngp13.phx.gbl...
ok, that might be a better idea but i just have to use md5.

I'm using a Serv-u FTP software on a server. Serv-u stores user passwords in
an ini file, with salted md5 encryption. I'm trying to implement an
automated system to create user accounts and this system will append new
account informaiton at the end of the serv-u ini file. The details of the
encryption and manually entering user info to the ini file are explained
here :

http://rhinosoft.com/KBArticle.asp?RefNo=1177&prod=su


This is the reason why i want to use salted MD5. Although the example in the
above link uses a long hash value, the actual ini file contains shorter ones
like ermm.. Here try the salted md5 algorithm at this link
http://www.n3dst4.com/network/crypter . Try hashing 12345678 with salt "ab".
The product is "ab1iBa.N.U2C6" which is in the form I have been looking for.
The MD5 hash is "5d55ad283aa400af464c76d713c07ad" but I'm not looking for
this.

Nov 16 '05 #7
maybe you can use int.Parse() to parse each byte of the string (2 digits are one hex byte) and put all resulting numbers in a byte[] array then use Convert.ToBase64CharArray() to convert it to the form you want.

--
cody

[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk
"Sıfırıncı Murat" <@> schrieb im Newsbeitrag news:uh**************@tk2msftngp13.phx.gbl...
ok, that might be a better idea but i just have to use md5.

I'm using a Serv-u FTP software on a server. Serv-u stores user passwords in
an ini file, with salted md5 encryption. I'm trying to implement an
automated system to create user accounts and this system will append new
account informaiton at the end of the serv-u ini file. The details of the
encryption and manually entering user info to the ini file are explained
here :

http://rhinosoft.com/KBArticle.asp?RefNo=1177&prod=su


This is the reason why i want to use salted MD5. Although the example in the
above link uses a long hash value, the actual ini file contains shorter ones
like ermm.. Here try the salted md5 algorithm at this link
http://www.n3dst4.com/network/crypter . Try hashing 12345678 with salt "ab".
The product is "ab1iBa.N.U2C6" which is in the form I have been looking for.
The MD5 hash is "5d55ad283aa400af464c76d713c07ad" but I'm not looking for
this.

Nov 16 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Murali | last post by:
I have a requirement where I have to use two unsigned ints as a key in a STL hash map. A couple of ways to do this is 1. create a struct with two unsigned ints and use that as key (write my own...
2
by: Bryan Olson | last post by:
The current Python standard library provides two cryptographic hash functions: MD5 and SHA-1 . The authors of MD5 originally stated: It is conjectured that it is computationally infeasible to...
24
by: kdotsky | last post by:
Hello, I am using some very large dictionaries with keys that are long strings (urls). For a large dictionary these keys start to take up a significant amount of memory. I do not need access to...
12
by: Arash Partow | last post by:
Hi all, I've ported various hash functions to python if anyone is interested: def RSHash(key): a = 378551 b = 63689 hash = 0
21
by: Johan Tibell | last post by:
I would be grateful if someone had a minute or two to review my hash table implementation. It's not yet commented but hopefully it's short and idiomatic enough to be readable. Some of the code...
21
by: Hallvard B Furuseth | last post by:
Is the code below valid? Generally a value must be accessed through the same type it was stored as, but there is an exception for data stored through a character type. I'm not sure if that...
139
by: ravi | last post by:
Hi can anybody tell me that which ds will be best suited to implement a hash table in C/C++ thanx. in advanced
18
by: beginner | last post by:
Hi All. I'd like to do the following in more succint code: if k in b: a=b else: a={} b=a
5
by: Jeff | last post by:
Lets say we have what I would call a "hash": var HASH =new Array(); HASH='first'; HASH='second'; HASH='third'; I'd like to return that as JSON data. Is there a direct way to do that?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.