RE: [PHP] hash problem.

2010-07-29 Thread Bob McConnell
From: João Cândido de Souza Neto > I´ve got the setting in my /etc/login.defs file as bellow: > > # Use MD5 or DES to encrypt password? Red Hat use MD5 by default. > MD5_CRYPT_ENAB no > > ENCRYPT_METHOD SHA512 > > So, when I try to get this: > > echo hash("sha512", $_POST["password"]); > >

Re: [PHP] Hash function

2009-11-10 Thread Hans Åhlin
Hope this is what your looking for... For legal purposes i her grant you all to use this file fore any purpose, and for the same reason i can not take away the copyright notice... 2009/11/9 Ali Asghar Toraby Parizy : > hi friends > I need a hash function to build a Unique serial number by mixin

Re: [PHP] Hash function

2009-11-09 Thread tedd
At 2:38 PM +0330 11/9/09, Ali Asghar Toraby Parizy wrote: hi friends I need a hash function to build a Unique serial number ... Try: http://php.net/manual/en/function.dbplus-getunique.php But use at your own risk. If you want a unique number try using a time stamp (i.e., time() ) in concert

Re: [PHP] Hash function

2009-11-09 Thread tedd
At 2:38 PM +0330 11/9/09, Ali Asghar Toraby Parizy wrote: hi friends I need a hash function to build a Unique serial number ... Try: http://php.net/manual/en/function.dbplus-getunique.php But use at your own risk. If you want a unique number try using a time stamp (i.e., time() ) in concert

Re: [PHP] Hash function

2009-11-09 Thread John Black
Ali Asghar Toraby Parizy wrote: Ok, thanks but how can i create serial number that nobody can guess it. for example when i use sha1() every body can examine it too! and so they can create it themselves! what strategy is useful to protect license? Ahh, so you are trying to protect your PHP code

Re: [PHP] Hash function

2009-11-09 Thread Ashley Sheridan
On Mon, 2009-11-09 at 15:35 +0330, Ali Asghar Toraby Parizy wrote: > Ok, thanks > but how can i create serial number that nobody can guess it. for example > when i use sha1() every body can examine it too! and so they can create it > themselves! > what strategy is useful to protect license? > I th

Re: [PHP] Hash function

2009-11-09 Thread Ali Asghar Toraby Parizy
Ok, thanks but how can i create serial number that nobody can guess it. for example when i use sha1() every body can examine it too! and so they can create it themselves! what strategy is useful to protect license? I think it is better to add a specific hidden string to request code, instead of use

Re: [PHP] Hash function

2009-11-09 Thread Ashley Sheridan
On Mon, 2009-11-09 at 12:39 +0100, John Black wrote: > Ali Asghar Toraby Parizy wrote: > > hi friends > > I need a hash function to build a Unique serial number by mixing a request > > code and a user name > > request codes are strings like this: They are literally HEX codes of MAC mac > > address

Re: [PHP] Hash function

2009-11-09 Thread John Black
Ali Asghar Toraby Parizy wrote: hi friends I need a hash function to build a Unique serial number by mixing a request code and a user name request codes are strings like this: They are literally HEX codes of MAC mac addresses. "002314EFD000544AB05345300045675609782123C3254B312123D12312EE13123F123

Re: [PHP] Hash/checksum for an image?

2007-01-16 Thread tedd
At 5:16 PM -0800 1/15/07, Brian Dunning wrote: I want to make sure that a jpg uploaded by the user is unique. I was thinking about storing a hash code for each image in its MySQL record (got a db record for each uploaded image already). Is there an easy way to generate such a string? I do a s

Re: [PHP] Hash/checksum for an image?

2007-01-15 Thread Chris
Brian Dunning wrote: I want to make sure that a jpg uploaded by the user is unique. I was thinking about storing a hash code for each image in its MySQL record (got a db record for each uploaded image already). Is there an easy way to generate such a string? an md5 should suffice. http://www

RE: [PHP] Hash Issues

2005-02-25 Thread Tyler Replogle
Try doing the hash code after the password is posted From: "Erbacher Karl" <[EMAIL PROTECTED]> To: php-general@lists.php.net Subject: [PHP] Hash Issues Date: Thu, 24 Feb 2005 08:26:35 -0800 Received: from lists.php.net ([216.92.131.4]) by mc5-f20.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); F

Re: [PHP] hash issues

2005-02-25 Thread Richard Lynch
Erbacher Karl wrote: > Thanks for your input, but I've played around with it and now it's uglier > than ever. I'm very new to PHP, so I'm not sure what I'm missing here. > I've > done a few things to try to pinpoint the problem, but now I'm even more > confused. Can you please look over what I've

Re: [PHP] hash issues

2005-02-25 Thread Jason Wong
On Friday 25 February 2005 08:36, Erbacher Karl wrote: > Thanks for your input, but I've played around with it and now it's > uglier than ever. I'm very new to PHP, so I'm not sure what I'm > missing here. I've done a few things to try to pinpoint the problem, > but now I'm even more confused. Ca

Re: [PHP] hash issues

2005-02-25 Thread Richard Lynch
Erbacher Karl wrote: > I am creating a database where I need people to log in using a unique > username and password. I would like to hash the passwords using the > one-way > function mhash(). However, when I try to do this, I have some issues that > I > cannot figure out. Here is what I have (I'

Re: [PHP] hash issues

2005-02-25 Thread Erbacher Karl
Thanks for your input, but I've played around with it and now it's uglier than ever. I'm very new to PHP, so I'm not sure what I'm missing here. I've done a few things to try to pinpoint the problem, but now I'm even more confused. Can you please look over what I've done and let me know if you

Re: [PHP] hash issues

2005-02-23 Thread Jason Wong
On Wednesday 23 February 2005 10:25, Erbacher Karl wrote: > Here's my big problem... I created three seperate sample users with > three different passwords (password1, password2, password3). When I go > back to look at the table info in the database, it shows that all three > of the passwords are

Re: [PHP] Hash

2003-07-30 Thread Evan Nemerson
do you have something agains php.net/md5? php.net/crc32? php.net/sha1? They're all included in 4.3 On Wednesday 30 July 2003 07:40 pm, AECT Listas wrote: > Hi, > > How set up functions hash in php4.3.2 > > thanks > > _ > Charla con

Re: [PHP] hash function secret

2002-09-29 Thread debbie_dyer
I don't see how it could be randomly generated else how would you be able to use it for authenticating etc but then I'm not a security expert. I use a long character string known only to me and stored outside my web directory. Maybe other ppl do differently I don't know. - Original Message -

Re: [PHP] hash suggestions wanted

2001-03-31 Thread Yasuo Ohgaki
If you need shorter result, how about use a part of md5 hash result? -- Yasuo Ohgaki ""David P. Schwartz"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > the PHP crypt function uses DES and it only generates a hash based on the > first 8 chars of a string, a

Re: [PHP] Hash syntaxes? simple but helpful

2001-03-20 Thread almir
use $aArray["abc"]=7; echo $aArray["abc"]; ""Costas"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 997b0s$3cl$[EMAIL PROTECTED]">news:997b0s$3cl$[EMAIL PROTECTED]... > I am used to perl syntax of: > > $var->{'abc'} for a hash (associative array) > > Can this syntax be done for PHP. > > What other

Re: [PHP] Hash syntaxes? simple but helpful

2001-03-20 Thread Alexander Gräf
$xy=array("a"=>"orange","b"=>"banana","c"=>"fruit"); -- [EMAIL PROTECTED] +49 9721 188848 +49 171 370 97 15 ""Costas"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 997b0s$3cl$[EMAIL PROTECTED]">news:997b0s$3cl$[EMAIL PROTECTED]... > I am used to perl syntax of: > > $var->{'abc'} for a hash