Re: [PHP] Hash function

2009-11-10 Thread Hans Åhlin
Hope this is what your looking for... ?php /** * This is a part of the SN1000 System * * @author Hans Åhlin * @copyright (C)2009 Hans Åhlin * @owner Hans Åhlin * @version 1.000.000 * @contact i...@sn1000.com * * Copyrighted by the owner of SN1000 * ALL COPYING, PUBLISHING AND EDITING

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.

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

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

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 think

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