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"]);
>
>
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
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
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
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
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
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
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
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
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
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
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
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
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
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'
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
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
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
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 -
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
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
$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
22 matches
Mail list logo