PageRenderTime 30ms queryFilters 1ms Sphinxql 577ms GetByIds 178ms meta 0ms repositoryFilters 55ms languageFilters 1ms sourceFilters 42ms

66,045 results for 'php md5 repo:goldie/zend-framework1' (30 ms)

Source

Language

Repository

md5.inc.php https://github.com/miya5n/pukiwiki.git | PHP | 135 lines
11//	* LDAP SHA / SSHA -- If you have sha1() or mhash extension
12//	* LDAP MD5 / SMD5
13//	* LDAP CRYPT
90	if ($sha1_enabled) $form .= <<<EOD
91  <input type="radio" name="scheme" id="_p_md5_sha1" value="x-php-sha1" />
92  <label for="_p_md5_sha1">PHP sha1()</label><br />
95	$form .= <<<EOD
96  <input type="radio" name="scheme" id="_p_md5_md5"  value="x-php-md5" />
97  <label for="_p_md5_md5">PHP md5()</label><br />
109	$form .= <<<EOD
110  <input type="radio" name="scheme" id="_p_md5_lsmd5" value="SMD5" $md5_checked/>
111  <label for="_p_md5_lsmd5">LDAP SMD5 (md5 with a seed) *</label><br />
112  <input type="radio" name="scheme" id="_p_md5_lmd5" value="MD5" />
113  <label for="_p_md5_lmd5">LDAP MD5</label><br />
114
md5.inc.php https://bitbucket.org/kumagi/fluxflex_pukiwiki | PHP | 135 lines
11//	* LDAP SHA / SSHA -- If you have sha1() or mhash extension
12//	* LDAP MD5 / SMD5
13//	* LDAP CRYPT
90	if ($sha1_enabled) $form .= <<<EOD
91  <input type="radio" name="scheme" id="_p_md5_sha1" value="x-php-sha1" />
92  <label for="_p_md5_sha1">PHP sha1()</label><br />
95	$form .= <<<EOD
96  <input type="radio" name="scheme" id="_p_md5_md5"  value="x-php-md5" />
97  <label for="_p_md5_md5">PHP md5()</label><br />
109	$form .= <<<EOD
110  <input type="radio" name="scheme" id="_p_md5_lsmd5" value="SMD5" $md5_checked/>
111  <label for="_p_md5_lsmd5">LDAP SMD5 (md5 with a seed) *</label><br />
112  <input type="radio" name="scheme" id="_p_md5_lmd5" value="MD5" />
113  <label for="_p_md5_lmd5">LDAP MD5</label><br />
114
auth.php https://bitbucket.org/kumagi/fluxflex_pukiwiki | PHP | 228 lines
1<?php
2// PukiWiki - Yet another WikiWikiWeb clone
30// $canonical : Correct or Preserve $scheme prefix
31function pkwk_hash_compute($phrase = '', $scheme = '{x-php-md5}', $prefix = TRUE, $canonical = FALSE)
32{
52	case '{x-php-crypt}' :
53		$hash = ($prefix ? ($canonical ? '{x-php-crypt}' : $scheme) : '') .
54			($salt != '' ? crypt($phrase, $salt) : crypt($phrase));
56
57	// PHP md5()
58	case '{x-php-md5}'   :
58	case '{x-php-md5}'   :
59		$hash = ($prefix ? ($canonical ? '{x-php-md5}' : $scheme) : '') .
60			md5($phrase);
195		// Basic-auth with $_SERVER['HTTP_AUTHORIZATION']
196		list($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW']) =
197			explode(':', base64_decode($matches[1]));
pukiwiki.ini.php https://github.com/miya5n/pukiwiki.git | PHP | 574 lines
232// Default: always fail
233$adminpass = '{x-php-md5}!';
234
236//$adminpass = 'pass'; // Cleartext
237//$adminpass = '{x-php-md5}1a1dc91c907325c69271ddf0c944bc72'; // PHP md5()  'pass'
238//$adminpass = '{CRYPT}$1$AR.Gk94x$uCe8fUUGMfxAPH83psCZG/';   // LDAP CRYPT 'pass'
239//$adminpass = '{MD5}Gh3JHJBzJcaScd3wyUS8cg==';               // LDAP MD5   'pass'
240//$adminpass = '{SMD5}o7lTdtHFJDqxFOVX09C8QnlmYmZnd2Qx';      // LDAP SMD5  'pass'
241
276	'foo'	=> 'foo_passwd', // Cleartext
277	'bar'	=> '{x-php-md5}f53ae779077e987718cc285b14dfbe86', // PHP md5() 'bar_passwd'
278	'hoge'	=> '{SMD5}OzJo/boHwM4q5R+g7LCOx2xGMkFKRVEx',      // LDAP SMD5 'hoge_passwd'
476// If you want to to ignore desktop-PC browsers for simple wikisite,
477// copy keitai.ini.php to default.ini.php and customize it.
478
Md5Test.php http://firephp.googlecode.com/svn/trunk/ | text | 0 lines
130        $validator = new Zend_Validate_File_Md5(array('12345', '12333', '12344'));
131        $this->assertEquals(array('12345' => 'md5', '12333' => 'md5', '12344' => 'md5'), $validator->getMd5());
132    }
144        $validator = new Zend_Validate_File_Md5(array('12345', '12333', '12344'));
145        $this->assertEquals(array('12345' => 'md5', '12333' => 'md5', '12344' => 'md5'), $validator->getHash());
146    }
159        $validator->setMd5(array('12321', '12121'));
160        $this->assertEquals(array('12321' => 'md5', '12121' => 'md5'), $validator->getMd5());
161    }
189        $validator->addMd5(array('12321', '12121'));
190        $this->assertEquals(array('12345' => 'md5', '12344' => 'md5', '12321' => 'md5', '12121' => 'md5'), $validator->getMd5());
191    }
204        $validator->addHash(array('12321', '12121'));
205        $this->assertEquals(array('12345' => 'md5', '12344' => 'md5', '12321' => 'md5', '12121' => 'md5'), $validator->getMd5());
206    }
Md5Test.php http://firephp.googlecode.com/svn/trunk/ | text | 0 lines
126        $validator = new Zend_Validate_File_Md5(array('12345', '12333', '12344'));
127        $this->assertEquals(array('12345' => 'md5', '12333' => 'md5', '12344' => 'md5'), $validator->getMd5());
128    }
155        $validator->setMd5(array('12321', '12121'));
156        $this->assertEquals(array('12321' => 'md5', '12121' => 'md5'), $validator->getMd5());
157    }
170        $validator->setHash(array('12321', '12121'));
171        $this->assertEquals(array('12321' => 'md5', '12121' => 'md5'), $validator->getMd5());
172    }
185        $validator->addMd5(array('12321', '12121'));
186        $this->assertEquals(array('12345' => 'md5', '12344' => 'md5', '12321' => 'md5', '12121' => 'md5'), $validator->getMd5());
187    }
200        $validator->addHash(array('12321', '12121'));
201        $this->assertEquals(array('12345' => 'md5', '12344' => 'md5', '12321' => 'md5', '12121' => 'md5'), $validator->getMd5());
202    }
pukiwiki.ini.php https://bitbucket.org/kumagi/fluxflex_pukiwiki | PHP | 534 lines
192// Default: always fail
193$adminpass = '{x-php-md5}!'.md5('password');
194
196//$adminpass = 'pass'; // Cleartext
197//$adminpass = '{x-php-md5}1a1dc91c907325c69271ddf0c944bc72'; // PHP md5()  'pass'
198//$adminpass = '{CRYPT}$1$AR.Gk94x$uCe8fUUGMfxAPH83psCZG/';   // LDAP CRYPT 'pass'
199//$adminpass = '{MD5}Gh3JHJBzJcaScd3wyUS8cg==';               // LDAP MD5   'pass'
200//$adminpass = '{SMD5}o7lTdtHFJDqxFOVX09C8QnlmYmZnd2Qx';      // LDAP SMD5  'pass'
201
236	'foo'	=> 'foo_passwd', // Cleartext
237	'bar'	=> '{x-php-md5}f53ae779077e987718cc285b14dfbe86', // PHP md5() 'bar_passwd'
238	'hoge'	=> '{SMD5}OzJo/boHwM4q5R+g7LCOx2xGMkFKRVEx',      // LDAP SMD5 'hoge_passwd'
436// If you want to to ignore desktop-PC browsers for simple wikisite,
437// copy keitai.ini.php to default.ini.php and customize it.
438
avalaratax.php https://github.com/DaveBenNoah/PrestaShop-modules.git | PHP | 1,492 lines
1<?php
2/*
22*  @copyright  2007-2014 PrestaShop SA
23*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
24*  International Registered Trademark & Property of PrestaShop SA
49		/** Backward compatibility */
50		require(_PS_MODULE_DIR_.$this->name.'/backward_compatibility/backward.php');
51		
192		return array(
193			'Tax.php' => array(
194				'source' => 'override/classes/tax/Tax.php',
194				'source' => 'override/classes/tax/Tax.php',
195				'dest' => 'override/classes/Tax.php',
196				'md5' => array(
238
239				$md5 = md5_file(_PS_ROOT_DIR_.'/'.$params['dest']);
240				$removed = false;
math.php http://hppg.googlecode.com/svn/trunk/ | PHP | 167 lines
1<?php
2/**
21    /**
22     * Creates a new big number library which uses the PHP extension $lib.
23     *
34     *         if the value provided for $lib is not correct
35     * @param string $lib The PHP library to use for big number support. Default
36     *                    is null, which means the available library is autodetected.
49                    {
50                        throw new ezcBaseExtensionNotFoundException( 'gmp | bcmath', null, "PHP not compiled with --enable-bcmath or --with-gmp." );
51                    }
65                {
66                    throw new ezcBaseExtensionNotFoundException( 'gmp', null, "PHP not compiled with --with-gmp." );
67                }
88     *
89     * This is different from the hash returned by the PHP md5() function. 
90     *
Md5Test.php https://bitbucket.org/sebs/mosolar | PHP | 214 lines
131        $validator = new Zend_Validate_File_Md5(array('12345', '12333', '12344'));
132        $this->assertEquals(array('12345' => 'md5', '12333' => 'md5', '12344' => 'md5'), $validator->getMd5());
133    }
145        $validator = new Zend_Validate_File_Md5(array('12345', '12333', '12344'));
146        $this->assertEquals(array('12345' => 'md5', '12333' => 'md5', '12344' => 'md5'), $validator->getHash());
147    }
160        $validator->setMd5(array('12321', '12121'));
161        $this->assertEquals(array('12321' => 'md5', '12121' => 'md5'), $validator->getMd5());
162    }
190        $validator->addMd5(array('12321', '12121'));
191        $this->assertEquals(array('12345' => 'md5', '12344' => 'md5', '12321' => 'md5', '12121' => 'md5'), $validator->getMd5());
192    }
205        $validator->addHash(array('12321', '12121'));
206        $this->assertEquals(array('12345' => 'md5', '12344' => 'md5', '12321' => 'md5', '12121' => 'md5'), $validator->getMd5());
207    }
pukiwiki.ini.php https://github.com/kaneko/rbwiki.git | PHP | 534 lines
192// Default: always fail
193$adminpass = '{x-php-md5}!';
194
196//$adminpass = 'pass'; // Cleartext
197//$adminpass = '{x-php-md5}1a1dc91c907325c69271ddf0c944bc72'; // PHP md5()  'pass'
198//$adminpass = '{CRYPT}$1$AR.Gk94x$uCe8fUUGMfxAPH83psCZG/';   // LDAP CRYPT 'pass'
199//$adminpass = '{MD5}Gh3JHJBzJcaScd3wyUS8cg==';               // LDAP MD5   'pass'
200//$adminpass = '{SMD5}o7lTdtHFJDqxFOVX09C8QnlmYmZnd2Qx';      // LDAP SMD5  'pass'
201
236	'foo'	=> 'foo_passwd', // Cleartext
237	'bar'	=> '{x-php-md5}f53ae779077e987718cc285b14dfbe86', // PHP md5() 'bar_passwd'
238	'hoge'	=> '{SMD5}OzJo/boHwM4q5R+g7LCOx2xGMkFKRVEx',      // LDAP SMD5 'hoge_passwd'
436// If you want to to ignore desktop-PC browsers for simple wikisite,
437// copy keitai.ini.php to default.ini.php and customize it.
438
md5.t https://github.com/pipp/pipp.git | Unknown | 86 lines
4
5t/php/md5.t - Standard Library md5
6
8
9    % perl t/harness t/php/md5.t
10
12
13Tests PHP Standard Library md5
14(implemented in F<languages/pipp/src/common/php_md5.pir>).
15
16See L<http://www.php.net/manual/en/ref.strings.php>.
17
39<?php
40  echo md5('message digest', FALSE), "\n";
41?>
Md5Test.php https://bitbucket.org/ksekar/campus.git | PHP | 208 lines
126        $validator = new Zend_Validate_File_Md5(array('12345', '12333', '12344'));
127        $this->assertEquals(array('12345' => 'md5', '12333' => 'md5', '12344' => 'md5'), $validator->getMd5());
128    }
155        $validator->setMd5(array('12321', '12121'));
156        $this->assertEquals(array('12321' => 'md5', '12121' => 'md5'), $validator->getMd5());
157    }
170        $validator->setHash(array('12321', '12121'));
171        $this->assertEquals(array('12321' => 'md5', '12121' => 'md5'), $validator->getMd5());
172    }
185        $validator->addMd5(array('12321', '12121'));
186        $this->assertEquals(array('12345' => 'md5', '12344' => 'md5', '12321' => 'md5', '12121' => 'md5'), $validator->getMd5());
187    }
200        $validator->addHash(array('12321', '12121'));
201        $this->assertEquals(array('12345' => 'md5', '12344' => 'md5', '12321' => 'md5', '12121' => 'md5'), $validator->getMd5());
202    }
Md5Test.php https://bitbucket.org/dbaltas/zend-framework-1.x-on-git.git | PHP | 208 lines
126        $validator = new Zend_Validate_File_Md5(array('12345', '12333', '12344'));
127        $this->assertEquals(array('12345' => 'md5', '12333' => 'md5', '12344' => 'md5'), $validator->getMd5());
128    }
155        $validator->setMd5(array('12321', '12121'));
156        $this->assertEquals(array('12321' => 'md5', '12121' => 'md5'), $validator->getMd5());
157    }
170        $validator->setHash(array('12321', '12121'));
171        $this->assertEquals(array('12321' => 'md5', '12121' => 'md5'), $validator->getMd5());
172    }
185        $validator->addMd5(array('12321', '12121'));
186        $this->assertEquals(array('12345' => 'md5', '12344' => 'md5', '12321' => 'md5', '12121' => 'md5'), $validator->getMd5());
187    }
200        $validator->addHash(array('12321', '12121'));
201        $this->assertEquals(array('12345' => 'md5', '12344' => 'md5', '12321' => 'md5', '12121' => 'md5'), $validator->getMd5());
202    }
sqlite.php git://github.com/pateketrueke/tetlphp.git | PHP | 98 lines
1<?php
2
57  $sql  = 'SELECT value FROM "data"';
58  $sql .= "\nWHERE \"key\" = PHP('md5', '$key')";
59
75  $sql .= '("key", "value", "expire")';
76  $sql .= "\nVALUES(PHP('md5', '$key'), '$val', $time)";
77
82  $sql  = 'DELETE FROM "data"';
83  $sql .= "\nWHERE \"key\" = PHP('md5', '$key')";
84
89  $sql  = "SELECT COUNT(*) FROM \"data\"";
90  $sql .= "\nWHERE \"key\" = PHP('md5', '$key')";
91
96
97/* EOF: ./library/cache/drivers/sqlite.php */
98
convert_passwords.php git://pkgs.fedoraproject.org/WebCalendar | PHP | 96 lines
1#!/usr/local/bin/php -q
2<?php
3/*
4 * $Id: convert_passwords.php,v 1.8.2.6 2011/04/27 00:27:35 rjones6061 Exp $
5 *
6 * This script will alter the webcal_user table to allow 32 character passwords
7 * and convert user passwords to PHP md5 passwords.
8 *
26include __WC_INCLUDEDIR . '/config.php';
27include __WC_INCLUDEDIR . '/dbi4php.php';
28
37
38// First, look at the passwords. If we find and md5 hash in there,
39// (it will have 32 chars instead of < 25 like in the old version),
55if ( $doneBefore ) {
56  echo "Passwords were already converted to md5!\n<br />\n";
57  exit;
Md5Test.php https://bitbucket.org/svenax/zendframework.git | PHP | 208 lines
126        $validator = new Zend_Validate_File_Md5(array('12345', '12333', '12344'));
127        $this->assertEquals(array('12345' => 'md5', '12333' => 'md5', '12344' => 'md5'), $validator->getMd5());
128    }
140        $validator = new Zend_Validate_File_Md5(array('12345', '12333', '12344'));
141        $this->assertEquals(array('12345' => 'md5', '12333' => 'md5', '12344' => 'md5'), $validator->getHash());
142    }
155        $validator->setMd5(array('12321', '12121'));
156        $this->assertEquals(array('12321' => 'md5', '12121' => 'md5'), $validator->getMd5());
157    }
185        $validator->addMd5(array('12321', '12121'));
186        $this->assertEquals(array('12345' => 'md5', '12344' => 'md5', '12321' => 'md5', '12121' => 'md5'), $validator->getMd5());
187    }
200        $validator->addHash(array('12321', '12121'));
201        $this->assertEquals(array('12345' => 'md5', '12344' => 'md5', '12321' => 'md5', '12121' => 'md5'), $validator->getMd5());
202    }
math.php https://bitbucket.org/crevillo/enetcall.git | PHP | 166 lines
1<?php
2/**
21    /**
22     * Creates a new big number library which uses the PHP extension $lib.
23     *
34     *         if the value provided for $lib is not correct
35     * @param string $lib The PHP library to use for big number support. Default
36     *                    is null, which means the available library is autodetected.
49                    {
50                        throw new ezcBaseExtensionNotFoundException( 'gmp | bcmath', null, "PHP not compiled with --enable-bcmath or --with-gmp." );
51                    }
65                {
66                    throw new ezcBaseExtensionNotFoundException( 'gmp', null, "PHP not compiled with --with-gmp." );
67                }
88     *
89     * This is different from the hash returned by the PHP md5() function. 
90     *
math.php https://github.com/Yannix/zetacomponents.git | PHP | 183 lines
1<?php
2/**
37    /**
38     * Creates a new big number library which uses the PHP extension $lib.
39     *
50     *         if the value provided for $lib is not correct
51     * @param string $lib The PHP library to use for big number support. Default
52     *                    is null, which means the available library is autodetected.
65                    {
66                        throw new ezcBaseExtensionNotFoundException( 'gmp | bcmath', null, "PHP not compiled with --enable-bcmath or --with-gmp." );
67                    }
81                {
82                    throw new ezcBaseExtensionNotFoundException( 'gmp', null, "PHP not compiled with --with-gmp." );
83                }
104     *
105     * This is different from the hash returned by the PHP md5() function. 
106     *
php.php git://github.com/pateketrueke/tetlphp.git | PHP | 54 lines
1<?php
2
14cache::implement('free_all', function () {
15  foreach (dir2arr(TMP, '--cache-php*') as $cache_file) {
16    @unlink(TMP.DS.$cache_file);
20cache::implement('fetch_item', function ($key) {
21  if (is_file($cache_file = TMP.DS.'--cache-php'.md5($key))) {
22    $test = include $cache_file;
34cache::implement('store_item', function ($key, $set = array(), $ttl = 0) {
35  $cache_file = TMP.DS.'--cache-php'.md5($key);
36
43cache::implement('delete_item', function ($key) {
44  if (is_file($cache_file = TMP.DS.'--cache-php'.md5($key))) {
45    return @unlink($cache_file);
52
53/* EOF: ./library/cache/drivers/php.php */
54
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21