Like you've probably already read, crypt() is a one way encryption method. UNIX Password files use this function to crypt their passwords actually. I'm not going to give you a detailed explanation of how it works, but here's a simple one :) Ok... consider this: * You think of a number. Let's say 43. That is your password. * The function then possibly divides this by 12, and stores the remainder as X. X in this case would equal 7. * The crypt() function returns X (which is 7) as your crypted password. This is not how crypt() actually performs, but it gives you a rough idea of how one way encryption works. You see, there is no way on earth you can reverse the process so that you start with 7 and end up with your starting number (in this case 43). Hope this makes things a bit clearer. >I'm working on two different places right now, and I wrote some code to >show imps the password of any player in the game for one of them. In my >transfering of the code to the second mud, the GET_PASSWD(ch) and >chdata.pwd return the crypted passwords. This was not the case for the >first mud, but both use password encryption. I'm guessing that since one >is FreeBSD and the other is Linux (redhat 4.0 i think), that the encryption >is a ton different. What I'm asking is where I could find a way to DEcrypt >the password string. > >Chuck > > > +------------------------------------------------------------+ > | Ensure that you have read the CircleMUD Mailing List FAQ: | > | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | > +------------------------------------------------------------+ > > | Andrew Ritchie, object@alphalink.com.au. | "Success is a child of one hundred fathers, | yet defeat is but an orphan." +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST