Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
 Entire forum ➜ MUSHclient ➜ General ➜ Help with C (somewhat irrelevant :)

Help with C (somewhat irrelevant :)

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Poromenos   Greece  (1,037 posts)  Bio
Date Thu 06 Feb 2003 09:44 PM (UTC)
Message
OK, I'm sorry about this post, it is entirely off topic, please don't delete it right away, this was the only place I could think of, there are quite a few geniuses in here... I am trying to find a program that generates the crypt() hashes in windows, but i couldn't find it, despite all my search... All i found was the library sources, (get them from www.poromenos.org/crypt.zip), but I have absolutely no idea on how to link them... Can someone help? I just need a simple program that takes the password (from the command prompt maybe?) and gives you the crypt() hash, i.e.
printf("Crypt() hash = %s", crypt("pasword", 0));
or however that's done.
If you could point me in the right direction I would be greatful.

Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it!
Top

Posted by Nick Gammon   Australia  (23,120 posts)  Bio   Forum Administrator
Date Reply #1 on Mon 10 Feb 2003 10:10 PM (UTC)

Amended on Mon 10 Feb 2003 10:11 PM (UTC) by Nick Gammon

Message
The crypt source would be the file crypt.c that comes with various Unix distributions, for instance I found a copy with the OpenBSD installation.

This particular file is 713 lines. I would compile it and join it with a simple "main" function that gets text to be encrypted and outputs the result.

You should be able to find copies amongst most major Unix/Linux distributions.

I found mine on my disk at:

/usr/src/lib/libc/crypt/crypt.c

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Poromenos   Greece  (1,037 posts)  Bio
Date Reply #2 on Tue 11 Feb 2003 02:38 PM (UTC)
Message
Ahh, thanks, although i'll try and link it now.. I don't have *nix, but that crypt source i found should do the trick.

Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it!
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


6,890 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.