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"]); > >

[PHP] hash problem.

2010-07-29 Thread 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"]); It does not match the password the user´s got in /etc/shad

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

[PHP] Hash function

2009-11-09 Thread Ali Asghar Toraby Parizy
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. "002314EFD000544AB05345300045675609782123C3254B312123D12312EE13123F123D123123EEE000E

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

[PHP] Hash/checksum for an image?

2007-01-15 Thread Brian Dunning
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? -- PHP General Mailing List (http://www.php.net/) To

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 SMTP

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'

[PHP] Hash Issues

2005-02-25 Thread Erbacher Karl
Hello, I'm trying to hash passwords before saving them to a mySQL database but I am having a 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 has saved the exact same ha

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

[PHP] hash issues

2005-02-23 Thread Erbacher Karl
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'll include every mention of th

[PHP] hash with RIPEMD-160

2004-05-09 Thread Dennis Gearon
Please CC me as I am on digest. Anyone using RIPEMD-160 for hashing in PHP? Is it part of Apache or the underlying OS? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

[PHP] Hash

2003-07-30 Thread AECT Listas
Hi, How set up functions hash in php4.3.2 thanks _ Charla con tus amigos en línea mediante MSN Messenger: http://messenger.yupimsn.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

Re: [PHP] hash function secret

2002-09-29 Thread debbie_dyer
riginal Message - From: "Pablo Oliva" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, September 29, 2002 7:52 PM Subject: [PHP] hash function secret > I was reading the sept. issue of linux magazine and they discussed > security issues with web apps. >

[PHP] hash function secret

2002-09-29 Thread Pablo Oliva
I was reading the sept. issue of linux magazine and they discussed security issues with web apps. They mentioned that to generate signatures, you should include a secret with your hash function: s = S(m) = H(secret, H(m, secret)) What is the secret, just a sort of secret code that you include,

[PHP] hash in php vs java

2001-07-20 Thread Marcus Hartmann
-BEGIN PGP SIGNED MESSAGE- Does anyone know which algorithm is used in java to generate hash code? I think it´s md5(hopefully), but I´m not certain about it... Thanx -BEGIN PGP SIGNATURE- Version: PGPfreeware 6.5.8 for non-commercial use iQEVAwUBO1gCj1iX

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

[PHP] hash suggestions wanted

2001-03-30 Thread David P. Schwartz
the PHP crypt function uses DES and it only generates a hash based on the first 8 chars of a string, although it produces a 12-char hash. Md5 can hash a string of indefinite length, but it produces a much longer hash (34 chars or so). I need something that can provide me with a 12-16 char hash o

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

[PHP] Hash syntaxes? simple but helpful

2001-03-20 Thread Costas
I am used to perl syntax of: $var->{'abc'} for a hash (associative array) Can this syntax be done for PHP. What other syntax is there for PHP hashes? Any that look like this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional command