/[dtapublic]/to_be_filed/webprojs/php_libraries/php_library/pamc_a/crhsh/crhsh.inc
ViewVC logotype

Contents of /to_be_filed/webprojs/php_libraries/php_library/pamc_a/crhsh/crhsh.inc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 35 - (show annotations) (download)
Sat Oct 8 23:35:33 2016 UTC (8 years, 1 month ago) by dashley
File size: 1632 byte(s)
Initial commit.
1 <?php
2 if (!isset($PAMC_A_SECRETS_SSTR_INCLUDED))
3 {
4 include("pamc_a/secrets/sstr.inc");
5 $PAMC_A_SECRETS_SSTR_INCLUDED = 1;
6 }
7 ?>
8 <?php
9 //********************************************************************************
10 //Copyright (C)2006 David T. Ashley
11 //********************************************************************************
12 //This program or source file is free software; you can redistribute it and/or
13 //modify it under the terms of the GNU General Public License as published by
14 //the Free Software Foundation; either version 2 of the License, or (at your
15 //option) any later version.
16 //
17 //This program or source file is distributed in the hope that it will
18 //be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
19 //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 //GNU General Public License for more details.
21 //
22 //You may have received a copy of the GNU General Public License
23 //along with this program; if not, write to the Free Software
24 //Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 //********************************************************************************
26 //Dave Ashley, 01/06
27 //
28 //This source file contains cryptographic hash functions.
29 //
30 //The single function below accepts an arbitrary number of arguments.
31 //
32 function CRHSH_hashva()
33 {
34 $input = SSTR_HASH_KEY;
35
36 $num_args = func_num_args();
37
38 for ($i=0; $i<$num_args; $i++)
39 {
40 $input .= ((string) func_get_arg($i));
41 $input .= SSTR_HASH_KEY;
42 }
43
44 $rv = md5($input);
45
46 return($rv);
47 }
48 ?>

dashley@gmail.com
ViewVC Help
Powered by ViewVC 1.1.25