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