CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 MD5 showed no erro but didn't encrypt the text passed to it.

Print topic Send  topic

Author Message
Ahaa
Posted: 10/28/2004, 3:25 AM

Hi All,

I am trying to encrypt password data and tried using md5 to do it. The outcome is so weird hence I would like someone to help me out to get it working. I wrote the code below in CCS Before build insert / update events record form and the text values got stored as I typed it. Do I have to setup something special on my server to use md5 encryption. My platform is Windows Server, IIS6.0, MS SQL Server + PHP 5.0.

$customer->new_pass->SetValue(md5($customer->new_pass->GetValue()));

Thanks in advance.

Cheers,
Ahaa




greg
Posted: 10/28/2004, 3:41 AM

I don't know about MSSQL but MySQL has a PASSWORD function to acheive
this. Maybe you should try to use it if MSSQL has it.

Greg

Ahaa wrote:
> Hi All,
>
> I am trying to encrypt password data and tried using md5 to do it. The outcome
> is so weird hence I would like someone to help me out to get it working. I
> wrote the code below in CCS Before build insert / update events record form
> and the text values got stored as I typed it. Do I have to setup something
> special on my server to use md5 encryption. My platform is Windows Server,
> IIS6.0, MS SQL Server + PHP 5.0.
>
> $customer->new_pass->SetValue(md5($customer->new_pass->GetValue()));
>
> Thanks in advance.
>
> Cheers,
> Ahaa
klw
Posted: 10/28/2004, 9:03 AM

Try this instead ...

global $customer;

$pswd = $customer->new_pass->GetValue();
$md5pswd = md5($pswd);
$customer->new_pass->SetValue($md5pswd);

Quote Ahaa:
Hi All,

I am trying to encrypt password data and tried using md5 to do it. The outcome is so weird hence I would like someone to help me out to get it working. I wrote the code below in CCS Before build insert / update events record form and the text values got stored as I typed it. Do I have to setup something special on my server to use md5 encryption. My platform is Windows Server, IIS6.0, MS SQL Server + PHP 5.0.

$customer->new_pass->SetValue(md5($customer->new_pass->GetValue()));

Thanks in advance.

Cheers,
Ahaa





Ahaa
Posted: 10/28/2004, 3:54 PM

kwl,

I have tried your suggestion and the data went in to the table as typed. md5 didn't encrypt the password or show any error message.

The worst part is not showing any error message. Please your suggestions are welcome.

Cheers,
Ahaa



Quote klw:
Try this instead ...

global $customer;

$pswd = $customer->new_pass->GetValue();
$md5pswd = md5($pswd);
$customer->new_pass->SetValue($md5pswd);

Quote Ahaa:
Hi All,

I am trying to encrypt password data and tried using md5 to do it. The outcome is so weird hence I would like someone to help me out to get it working. I wrote the code below in CCS Before build insert / update events record form and the text values got stored as I typed it. Do I have to setup something special on my server to use md5 encryption. My platform is Windows Server, IIS6.0, MS SQL Server + PHP 5.0.

$customer->new_pass->SetValue(md5($customer->new_pass->GetValue()));

Thanks in advance.

Cheers,
Ahaa






peterr


Posts: 5971
Posted: 10/28/2004, 3:59 PM

Looks like you just need to debug your program.
Print the value of $md5pswd:
$pswd = $customer->new_pass->GetValue();
$md5pswd = md5($pswd);
echo $md5pswd;
$customer->new_pass->SetValue($md5pswd);

This should show an encrypted password.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
klwillis


Posts: 428
Posted: 10/29/2004, 10:22 AM

Try something like this within a PHP script outside of CCS ...

<?php

$txt = "Hello World";
$md5txt = md5($txt);
echo ($md5txt);

?>

Do you also get the same results?

Quote Ahaa:
kwl,

I have tried your suggestion and the data went in to the table as typed. md5 didn't encrypt the password or show any error message.

The worst part is not showing any error message. Please your suggestions are welcome.

Cheers,
Ahaa



Quote klw:
Try this instead ...

global $customer;

$pswd = $customer->new_pass->GetValue();
$md5pswd = md5($pswd);
$customer->new_pass->SetValue($md5pswd);

Quote Ahaa:
Hi All,

I am trying to encrypt password data and tried using md5 to do it. The outcome is so weird hence I would like someone to help me out to get it working. I wrote the code below in CCS Before build insert / update events record form and the text values got stored as I typed it. Do I have to setup something special on my server to use md5 encryption. My platform is Windows Server, IIS6.0, MS SQL Server + PHP 5.0.

$customer->new_pass->SetValue(md5($customer->new_pass->GetValue()));

Thanks in advance.

Cheers,
Ahaa








_________________
Kevin Willis, VP/CIO
HealthCare Information Technology Specialist
http://www.nexushealthcare.com
"Fast - Convenient - Quality-Care"

Medical Software Consulting Services
Email : klwillis@nexushealthcare.com
Skype : klwillis2006
View profile  Send private message
klw
Posted: 11/05/2004, 7:30 AM

md5 has not been coinfigured to work with your PHP installation.
Have you tried contacting your hosting service about this, and what
do they have to say?

Quote klwillis:
Try something like this within a PHP script outside of CCS ...

<?php

$txt = "Hello World";
$md5txt = md5($txt);
echo ($md5txt);

?>

Do you also get the same results?

Quote Ahaa:
kwl,

I have tried your suggestion and the data went in to the table as typed. md5 didn't encrypt the password or show any error message.

The worst part is not showing any error message. Please your suggestions are welcome.

Cheers,
Ahaa



Quote klw:
Try this instead ...

global $customer;

$pswd = $customer->new_pass->GetValue();
$md5pswd = md5($pswd);
$customer->new_pass->SetValue($md5pswd);

Quote Ahaa:
Hi All,

I am trying to encrypt password data and tried using md5 to do it. The outcome is so weird hence I would like someone to help me out to get it working. I wrote the code below in CCS Before build insert / update events record form and the text values got stored as I typed it. Do I have to setup something special on my server to use md5 encryption. My platform is Windows Server, IIS6.0, MS SQL Server + PHP 5.0.

$customer->new_pass->SetValue(md5($customer->new_pass->GetValue()));

Thanks in advance.

Cheers,
Ahaa









Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.