hello,
On 5/21/08, Nelson Serafica <[EMAIL PROTECTED]> wrote:
>
> insert into radcheck (username,attribute,value)
> values('$data[1]','Password',encrypt('$data[5]'))
$data[5] will be hashed by unix crypt() if its called by mysql
encrypt(). this is normal if your attribute is crypt-password. you
cannot reverse it, but you can check/compare supplied password against
it (as xander already told you in his post).
is $data[1] also scrambled? i guess not because i see your attribute
field value ("Password") clearly.
i know such a progammer that that scrambles _all_ data inside mysql. i
cannot even backup the database because mysqldump chokes and
terminates if it encounters "foreign" characters. this programmer is
so proud that he thinks no one can take over his work.
>
> ________________________________
> Support Victims of the Cyclone in Myanmar (Burma).
> Donate Now.
> _________________________________________________
> Philippine Linux Users' Group (PLUG) Mailing List
> http://lists.linux.org.ph/mailman/listinfo/plug
> Searchable Archives: http://archives.free.net.ph
>
--
edel
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph