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 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,