pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Encrypt given Data
3+ messages / 3 participants
[nested] [flat]

* Encrypt given Data
@ 2001-10-16 12:16 ums san sankari <umashankarit@rediffmail.com>
  2001-10-16 16:46 ` Re: Encrypt given Data Adam Lang <aalang@rutgersinsurance.com>
  0 siblings, 1 reply; 3+ messages in thread

From: ums san sankari @ 2001-10-16 12:16 UTC (permalink / raw)
  To: pgsql-php


Greetings!


    Can u spent some times for me ?. I need the coding to encrypt the data given by the user and i have to store that details in mysql database.Send the coding as soon as possible.and also i have to decrypt the data  

-Uma 




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Encrypt given Data
  2001-10-16 12:16 Encrypt given Data ums san sankari <umashankarit@rediffmail.com>
@ 2001-10-16 16:46 ` Adam Lang <aalang@rutgersinsurance.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Adam Lang @ 2001-10-16 16:46 UTC (permalink / raw)
  To: pgsql-php

look up the md5 functions at php.net

Adam Lang
Systems Engineer
Rutgers Casualty Insurance Company
http://www.rutgersinsurance.com
----- Original Message -----
From: "ums san sankari" <umashankarit@rediffmail.com>
To: <pgsql-php@postgresql.org>
Sent: Tuesday, October 16, 2001 8:16 AM
Subject: [PHP] Encrypt given Data


>
> Greetings!
>
>
>     Can u spent some times for me ?. I need the coding to encrypt the data
given by the user and i have to store that details in mysql database.Send
the coding as soon as possible.and also i have to decrypt the data
>
> -Uma
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>






^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Encrypt given Data
@ 2001-10-16 23:01 Ben.Westgarth@facs.gov.au
  0 siblings, 0 replies; 3+ messages in thread

From: Ben.Westgarth@facs.gov.au @ 2001-10-16 23:01 UTC (permalink / raw)
  To: ums san sankari <umashankarit@rediffmail.com>; +Cc: pgsql-php



First of all, this is a list dedicated to php and POSTGRESQL, not Mysql. But
because you are using php...

It completely depends on how much security matters to you.

For most purposes, the php function crypt( ) will do the job. It is pretty well
covered by most of the php resources out there which is really where you should
check first.

Try the following:

$encryptedPass = crypt($password, '.v');

This encrypts the string $password using the 2 character salt '.v' -you can
change these characters as you like.

AFAIK there is no way to decrypt this as such, so...

- take user's login password and encrypt it using the same two character salt.
- compare it against the encrypted password already stored in the database.

If you need to more about this there are plenty of resources out there including
php.net. And remember that in future this list is for POSTGRESQL users. There
are other lists where you can post your mysql related questions.






"ums san sankari" <umashankarit@rediffmail.com> on 16/10/2001 22:16:13

Please respond to "ums san sankari" <umashankarit@rediffmail.com>

To:   pgsql-php@postgresql.org
cc:    (bcc: Ben Westgarth/User/FaCS)

Subject:  [PHP] Encrypt given Data




Greetings!


    Can u spent some times for me ?. I need the coding to encrypt the data given
by the user and i have to store that details in mysql database.Send the coding
as soon as possible.and also i have to decrypt the data

-Uma


---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Attachments:

  att1.eml (application/octet-stream, 2.6K) download

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2001-10-16 23:01 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-10-16 12:16 Encrypt given Data ums san sankari <umashankarit@rediffmail.com>
2001-10-16 16:46 ` Adam Lang <aalang@rutgersinsurance.com>
2001-10-16 23:01 Re: Encrypt given Data Ben.Westgarth@facs.gov.au

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox