PageRenderTime 963ms queryFilters 0ms Sphinxql 322ms GetByIds 386ms meta 0ms repositoryFilters 8ms languageFilters 81ms sourceFilters 58ms

66,045 results for 'php md5 repo:izubizarreta/https-bitbucket.org-bityvip' (963 ms)

Source

Language

Repository

getFramesForwardPassedEnd.php http://phpvideotoolkit.googlecode.com/svn/trunk/ | PHP | 145 lines
3--SKIPIF--
4<?php 
5function_exists("imagecreatetruecolor") or die("skip function imagecreatetruecolor unavailable");
6require_once '../../ffmpeg_movie.php';
7require_once '../../ffmpeg_frame.php';
8require_once '../../ffmpeg_animated_gif.php';
10$dir = dirname(dirname(dirname(dirname(dirname(__FILE__)))));
11require_once $dir.'/examples/example-config.php';
12$tmp_dir = PHPVIDEOTOOLKIT_EXAMPLE_ABSOLUTE_PATH.'working/tmp';;
14--FILE--
15<?php
16$mov = new ffmpeg_movie($dir.'/examples/to-be-processed/cat.mpeg', false, $tmp_dir);
27    imagepng($image, $img);
28    printf("ffmpeg getFrameResampled($i): md5 = %s\n", md5(file_get_contents($img)));
29    imagedestroy($image);
getFramesBackwards.php http://phpvideotoolkit.googlecode.com/svn/trunk/ | PHP | 263 lines
3--SKIPIF--
4<?php 
5function_exists("imagecreatetruecolor") or die("skip function imagecreatetruecolor unavailable");
6require_once '../../ffmpeg_movie.php';
7require_once '../../ffmpeg_frame.php';
8require_once '../../ffmpeg_animated_gif.php';
10$dir = dirname(dirname(dirname(dirname(dirname(__FILE__)))));
11require_once $dir.'/examples/example-config.php';
12$tmp_dir = PHPVIDEOTOOLKIT_EXAMPLE_ABSOLUTE_PATH.'working/tmp';;
14--FILE--
15<?php
16$mov = new ffmpeg_movie($dir.'/examples/to-be-processed/cat.mpeg', false, $tmp_dir);
24    imagepng($image, $img);
25    printf("ffmpeg getFrameResampled($i): md5 = %s\n", md5(file_get_contents($img)));
26    imagedestroy($image);
functions.php http://pbb-png1.googlecode.com/svn/trunk/ | PHP | 4,017 lines
494		$file_uid = $file_gid = false;
495		$common_php_owner = $common_php_group = false;
496	}
501		// Determine owner/group of common.php file and the filename we want to change here
502		$common_php_owner = fileowner($phpbb_root_path . 'common.' . $phpEx);
503		$common_php_group = filegroup($phpbb_root_path . 'common.' . $phpEx);
538	}
539	else if ($file_uid == $php_uid /* && $common_php_owner !== false && $common_php_owner === $file_uid*/)
540	{
2043			// Used ./ before, but $phpbb_root_path is working better with urls within another root path
2044			$root_dirs = explode('/', str_replace('\\', '/', phpbb_realpath($phpbb_root_path)));
2045			$page_dirs = explode('/', str_replace('\\', '/', phpbb_realpath($pathinfo['dirname'])));
2127{
2128	global $phpEx, $phpbb_root_path;
2129
SMTP.php http://railoapacheportable.googlecode.com/svn/trunk/ | PHP | 1,134 lines
1<?php
2/* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */
5// +----------------------------------------------------------------------+
6// | Copyright (c) 1997-2003 The PHP Group                                |
7// +----------------------------------------------------------------------+
7// +----------------------------------------------------------------------+
8// | This source file is subject to version 2.02 of the PHP license,      |
9// | that is bundled with this package in the file LICENSE, and is        |
10// | available at through the world-wide-web at                           |
11// | http://www.php.net/license/2_02.txt.                                 |
12// | If you did not receive a copy of the PHP license and are unable to   |
13// | obtain it through the world-wide-web, please send a note to          |
14// | license@php.net so we can mail you a copy immediately.               |
15// +----------------------------------------------------------------------+
64     */
65    var $auth_methods = array('DIGEST-MD5', 'CRAM-MD5', 'LOGIN', 'PLAIN');
66
Hash.php git://github.com/eryx/php-framework-benchmark.git | PHP | 857 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
3
4namespace PHPSecLib;
5
6/**
7 * Pure-PHP implementations of keyed-hash message authentication codes (HMACs) and various cryptographic hashing functions.
8 *
10 *
11 * md2, md5, md5-96, sha1, sha1-96, sha256, sha384, and sha512
12 *
15 *
16 * PHP versions 4 and 5
17 *
22 * <code>
23 * <?php
24 *    include('Crypt/Hash.php');
SSH2.php git://github.com/eryx/php-framework-benchmark.git | PHP | 2,633 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
13 * <?php
14 *    include('Net/SSH2.php');
15 *
26 * <code>
27 * <?php
28 *    include('Crypt/RSA.php');
789            'hmac-sha1',    // REQUIRED        HMAC-SHA1 (digest length = key length = 20)
790            'hmac-md5-96',  // OPTIONAL        first 96 bits of HMAC-MD5 (digest length = 12, key length = 16)
791            'hmac-md5',     // OPTIONAL        HMAC-MD5 (digest length = key length = 16)
1312
1313        // although PHP5's get_class() preserves the case, PHP4's does not
1314        if (is_object($password) && strtolower(get_class($password)) == 'crypt_rsa') {
1808     *
1809     * Will be called, automatically, if you're supporting just PHP5.  If you're supporting PHP4, you'll need to call
1810     * disconnect().
class.smtp.php git://github.com/nshahzad/phpVMS.git | PHP | 1,249 lines
1<?php
2/**
5 * @package PHPMailer
6 * @link https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project
7 * @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk>
20/**
21 * PHPMailer RFC821 SMTP email transport class.
22 * Implements RFC 821 SMTP commands and provides some utility methods for sending mail to an SMTP server.
529                // Start authentication
530                if (!$this->sendCommand('AUTH CRAM-MD5', 'AUTH CRAM-MD5', 334)) {
531                    return false;
563        // The following borrowed from
564        // http://php.net/manual/en/function.mhash.php#27225
565
580
581        return md5($k_opad . pack('H*', md5($k_ipad . $data)));
582    }
adminModule.class.php git://github.com/KrynLabs/Kryn.cms.git | PHP | 1,134 lines
505                $file = substr($file, 2);
506                $md5s .= $file . ' ' . md5(kryn::fileRead($temp . $file)) . "\n";
507
539
540            $reads[] = File_Archive::read($temp . $md5File, $md5File);
541
795
796            foreach ($md5s as $file => $md5) {
797                foreach ($writableFiles as $path) {
798                    if ($path != "" && preg_match('/' . str_replace('/', '\/', $path) . '/', $file) != 0) {
799                        if (file_exists($file) && $md5 != md5(kryn::fileRead($file)))
800                            $modFiles[] = $file;
972
973        @rename('install.php', 'install.php.' . rand(123, 5123) . rand(585, 2319293) . rand(9384394, 313213133));
974
S3.php git://github.com/nfabre/deepzoom.php.git | PHP | 900 lines
1<?php
2/**
33/**
34 * Amazon S3 PHP connection class
35 *
84             */
85            require_once 'Zend/Service/Amazon/S3/Exception.php';
86            throw new Zend_Service_Amazon_S3_Exception('Invalid endpoint supplied');
402        if(!is_resource($data)) {
403            $headers['Content-MD5'] = base64_encode(md5($data, true));
404        }
412
413        // Check the MD5 Etag returned by S3 against and MD5 of the buffer
414        if ($response->getStatus() == 200) {
483        if(!isset($meta['Content-MD5'])) {
484            $headers['Content-MD5'] = base64_encode(md5_file($path, true));
485        }
emailer.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 1,670 lines
48		// Determine EOL character (\n for UNIX, \r\n for Windows and \r for Mac)
49		$this->eol = (!defined('PHP_EOL')) ? (($eol = strtolower(substr(PHP_OS, 0, 3))) == 'win') ? "\r\n" : (($eol == 'mac') ? "\r" : "\n") : PHP_EOL;
50		$this->eol = (!$this->eol) ? "\n" : $this->eol;
1471		$password = (strlen($password) > 64) ? pack('H32', md5($password)) : ((strlen($password) < 64) ? str_pad($password, 64, chr(0)) : $password);
1472		$md5_digest = md5((substr($password, 0, 64) ^ str_repeat(chr(0x5C), 64)) . (pack('H32', md5((substr($password, 0, 64) ^ str_repeat(chr(0x36), 64)) . $md5_challenge))));
1473
1567
1568			$auth_1 = sprintf('%s:%s:%s', pack('H32', md5(sprintf('%s:%s:%s', $username, $md5_challenge['realm'], $password))), $md5_challenge['nonce'], $cnonce);
1569			$auth_2 = 'AUTHENTICATE:' . $digest_uri;
1569			$auth_2 = 'AUTHENTICATE:' . $digest_uri;
1570			$response_value = md5(sprintf('%s:%s:00000001:%s:auth:%s', md5($auth_1), $md5_challenge['nonce'], $cnonce, md5($auth_2)));
1571
1571
1572			$input_string = sprintf('username="%s",realm="%s",nonce="%s",cnonce="%s",nc="00000001",qop=auth,digest-uri="%s",response=%s,%d', $username, $md5_challenge['realm'], $md5_challenge['nonce'], $cnonce, $digest_uri, $response_value, $md5_challenge['maxbuf']);
1573		}
S3.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 900 lines
1<?php
2/**
33/**
34 * Amazon S3 PHP connection class
35 *
84             */
85            require_once 'Zend/Service/Amazon/S3/Exception.php';
86            throw new Zend_Service_Amazon_S3_Exception('Invalid endpoint supplied');
402        if(!is_resource($data)) {
403            $headers['Content-MD5'] = base64_encode(md5($data, true));
404        }
412
413        // Check the MD5 Etag returned by S3 against and MD5 of the buffer
414        if ($response->getStatus() == 200) {
483        if(!isset($meta['Content-MD5'])) {
484            $headers['Content-MD5'] = base64_encode(md5_file($path, true));
485        }
ic2.php git://github.com/unpush/p2-php.git | PHP | 1,072 lines
494$size = filesize($tmpfile);
495$md5  = md5_file($tmpfile);
496$width  = $info[0];
544    $record->size = $size;
545    $record->md5 = $md5;
546    $record->width = $width;
580    $aborn->size = $size;
581    $aborn->md5 = $md5;
582    $aborn->width = $width;
603    $bl_check->whereAddQuoted('size', '=', $size);
604    $bl_check->whereAddQuoted('md5',  '=', $md5);
605    if ($bl_check->find(true)) {
628    $check->whereAddQuoted('size', '=', $size);
629    $check->whereAddQuoted('md5',  '=', $md5);
630    //$check->whereAddQuoted('mime', '=', $mime); // Size��MD5�ŏ\��
DB.php git://pkgs.fedoraproject.org/php-pear-Auth | PHP | 640 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
10 * that is available through the world-wide-web at the following URI:
11 * http://www.php.net/license/3_01.txt.  If you did not receive a copy of
12 * the PHP License and are unable to obtain it through the web, please
12 * the PHP License and are unable to obtain it through the web, please
13 * send a note to license@php.net so we can mail you a copy immediately.
14 *
16 * @package    Auth
17 * @author     Martin Jansen <mj@php.net>
18 * @author     Adam Ashley <aashley@php.net>
19 * @copyright  2001-2006 The PHP Group
20 * @license    http://www.php.net/license/3_01.txt  PHP License 3.01
21 * @version    CVS: $Id: DB.php 256753 2008-04-04 07:57:02Z aashley $
44 * @copyright  2001-2006 The PHP Group
45 * @license    http://www.php.net/license/3_01.txt  PHP License 3.01
46 * @version    Release: 1.6.2  File: $Revision: 256753 $
PassHash.class.php git://pkgs.fedoraproject.org/dokuwiki | PHP | 380 lines
115     * @author <mikey_nich at hotmail dot com>
116     * @link   http://de.php.net/manual/en/function.crypt.php#73619
117     * @param string $clear - the clear text to hash
124
125        if(defined('CRYPT_MD5') && CRYPT_MD5){
126            return crypt($clear,'$1$'.$salt.'$');
140     * @author <mikey_nich at hotmail dot com>
141     * @link   http://de.php.net/manual/en/function.crypt.php#73619
142     * @param string $clear - the clear text to hash
285        $key = substr($salt, 16, 2);
286        $hash1 = strtolower(md5($key . md5($clear)));
287        $hash2 = substr($hash1, 0, 16) . $key . substr($hash1, 16);
375        $this->init_salt($salt,5);
376        return 'md5$'.$salt.'$'.md5($salt.$clear);
377    }
Client.php git://pkgs.fedoraproject.org/imp | PHP | 667 lines
1<?php
2
17 * Based on code from:
18 *   + auth.php (1.49)
19 *   + imap_general.php (1.212)
19 *   + imap_general.php (1.212)
20 *   + strings.php (1.184.2.35)
21 *   from the Squirrelmail project.
100     * @param string $port      The port to connect to on the IMAP server.
101     * @param string $protocol  The protocol string (See, e.g., servers.php).
102     */
128            /* There is no way in PHP 4 to open a TLS connection to a
129             * non-secured port.  See http://bugs.php.net/bug.php?id=26040 */
130            if (!function_exists('stream_socket_enable_crypto')) {
408            if (!@include_once 'Auth/SASL.php') {
409                return PEAR::raiseError(_("CRAM-MD5 or DIGEST-MD5 requires PEAR's Auth_SASL package to be installed."), 'horde.error');
410            }
md5.c http://opensource.apple.com/release/mac-os-x-1074/ | C | 465 lines
69   Calculate the md5 hash of a string */</span>
70<span class="enscript-function-name">PHP_NAMED_FUNCTION</span>(php_if_md5)
71{
98   Calculate the md5 hash of given filename */</span>
99<span class="enscript-function-name">PHP_NAMED_FUNCTION</span>(php_if_md5_file)
100{
240 */</span>
241PHPAPI <span class="enscript-type">void</span> <span class="enscript-function-name">PHP_MD5Init</span>(PHP_MD5_CTX * context)
242{
257 */</span>
258PHPAPI <span class="enscript-type">void</span> <span class="enscript-function-name">PHP_MD5Update</span>(PHP_MD5_CTX * context, <span class="enscript-type">const</span> <span class="enscript-type">unsigned</span> <span class="enscript-type">char</span> *input,
259			   <span class="enscript-type">unsigned</span> <span class="enscript-type">int</span> inputLen)
298 */</span>
299PHPAPI <span class="enscript-type">void</span> <span class="enscript-function-name">PHP_MD5Final</span>(<span class="enscript-type">unsigned</span> <span class="enscript-type">char</span> digest[16], PHP_MD5_CTX * context)
300{
update.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 2,032 lines
474		
475		$xtpl->assign( 'URL_DELETE', NV_BASE_ADMINURL . 'index.php?' . NV_NAME_VARIABLE . '=webtools&amp;' . NV_OP_VARIABLE . '=deleteupdate&amp;checksess=' . md5( $global_config['sitekey'] . session_id() ) );
476		$xtpl->assign( 'URL_RETURN', NV_BASE_ADMINURL . 'index.php?' . NV_NAME_VARIABLE . '=siteinfo' );
737		
738		$xtpl->assign( 'URL_DELETE', NV_BASE_ADMINURL . 'index.php?' . NV_NAME_VARIABLE . '=webtools&amp;' . NV_OP_VARIABLE . '=deleteupdate&amp;checksess=' . md5( $global_config['sitekey'] . session_id() ) );
739		$xtpl->assign( 'URL_GOHOME', NV_BASE_SITEURL . 'index.php?' . NV_LANG_VARIABLE . '=' . NV_LANG_DATA );
768		
769		$xtpl->assign( 'URL_DELETE', NV_BASE_ADMINURL . 'index.php?' . NV_NAME_VARIABLE . '=webtools&amp;' . NV_OP_VARIABLE . '=deleteupdate&amp;checksess=' . md5( $global_config['sitekey'] . session_id() ) );
770		$xtpl->assign( 'URL_RETURN', NV_BASE_ADMINURL . 'index.php?' . NV_NAME_VARIABLE . '=siteinfo' );
1099					
1100					die( $lang_module['update_dump_ok'] . ' ' . nv_convertfromBytes( $dump[1] ) . '<br /><a href="' . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=database&amp;" . NV_OP_VARIABLE . "=getfile&amp;filename=" . $file. "&amp;checkss=" . md5( $file . $client_info['session_id'] . $global_config['sitekey'] ) . '" title="' . $lang_module['update_dump_download'] . '">' . $lang_module['update_dump_download'] . '</a>'  );
1101				}
1198					
1199					die( '<a href="' . NV_BASE_SITEURL . 'install/update.php?step=2&amp;substep=4&downfile=' . $filename2 . '&checksess=' . md5( $global_config['sitekey'] . session_id() ) . '" title="' . $lang_module['update_log_dump_file_down'] . '">' . $lang_module['update_file_backup_ok'] . '</a>' );
1200				}
config_default.php git://pkgs.fedoraproject.org/squirrelmail | PHP | 1,067 lines
1<?php
2
164 *
165 * Encoded information can be decoded with decrypt_headers.php script
166 * from SquirrelMail contrib/ directory.
235 *
236 * CRAM-MD5, DIGEST-MD5, Plain, and TLS
237 * Set reasonable defaults - you'd never know this was there unless you ask for it
244 *
245 * CRAM-MD5, DIGEST-MD5, Plain, and TLS
246 * Set reasonable defaults - you'd never know this was there unless you ask for it
253 *
254 * auth_mech can be either 'none', 'login','plain', 'cram-md5', or 'digest-md5'
255 * @global string $smtp_auth_mech
281 *
282 * auth_mech can be either 'login','plain', 'cram-md5', or 'digest-md5'
283 * @global string $imap_auth_mech
SMTP.php https://git01.codeplex.com/eccubeonwaz | PHP | 1,219 lines
1<?php
2/* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */
5// +----------------------------------------------------------------------+
6// | Copyright (c) 1997-2003 The PHP Group                                |
7// +----------------------------------------------------------------------+
7// +----------------------------------------------------------------------+
8// | This source file is subject to version 2.02 of the PHP license,      |
9// | that is bundled with this package in the file LICENSE, and is        |
10// | available at through the world-wide-web at                           |
11// | http://www.php.net/license/2_02.txt.                                 |
12// | If you did not receive a copy of the PHP license and are unable to   |
13// | obtain it through the world-wide-web, please send a note to          |
14// | license@php.net so we can mail you a copy immediately.               |
15// +----------------------------------------------------------------------+
64     */
65    var $auth_methods = array('DIGEST-MD5', 'CRAM-MD5', 'LOGIN', 'PLAIN');
66
Hash.php https://git01.codeplex.com/openemr | PHP | 826 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
4/**
5 * Pure-PHP implementations of keyed-hash message authentication codes (HMACs) and various cryptographic hashing functions.
6 *
8 *
9 * md2, md5, md5-96, sha1, sha1-96, sha256, sha384, and sha512
10 *
13 *
14 * PHP versions 4 and 5
15 *
20 * <code>
21 * <?php
22 *    include('Crypt/Hash.php');
51 * @package    Crypt_Hash
52 * @author     Jim Wigginton <terrafrost@php.net>
53 * @copyright  MMVII Jim Wigginton
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21