<snip>
I can't take the password from the player file and use it directly. I
can't use the rom password directly, because php does NOT recognize the 
encryption method used here. I've tried with crypt, md5, blowfish. 
</snip>

Well, if you tried crypt, you must have tried it wrong...

<snip>
If rom uses custom passwords, then I'll just have to find some other way
to 
deal with this (to grab the player password as they type it in somehow
is 
probably the easiest way to do it).
</snip>

ROM doesn't use custom password encryption. When you password is typed
in, crypt is called to encrypt it. Any future time your password needs
to be verified, your text you enter is encrypted and strcmp'ed against
your old encrypted password.

<snip>
in this case, it's not as simple as comparing X to Y because there IS no

comparison between the two  as far as I've seen.
</snip>

Read above response for comparision....

<snip>
The passwords are encrypted 
in some unstandard (??) way from the best that I can find. The question
was 
(and still is) how is this encrypted, and if it's not standard, how to 
convert that to an md5 encryption, or system crypt(), or blowfish,
ANYTHING 
that php would recognize as an encryption method.
</snip>

Use the system crypt, since that is what ROM uses

<snip>
> Unfortunately, my php experience is highly limited (I'm getting there,

> but it isn't exactly easy), and my  encryption experience actually is 
> less.. 
</snip>

So, if your encrypting experience is so little...why do you doubt
someone who knows what they are talking about?

ROM uses the standard C library crypt function in -lcrypt. Simple as
that.

Ammaross Danan


Reply via email to