100+ results results for 'php sha1' (838 ms)
1<?php 2 2 3require_once('../config.php'); 4//require_once($CFG->dirroot.'/course/lib.php'); 4//require_once($CFG->dirroot.'/course/lib.php'); 5require_once($CFG->dirroot.'/calendar/lib.php'); 6require_once($CFG->libdir.'/bennu/bennu.inc.php'); 26//Check authentication token 27$authuserid = !empty($userid) && $authtoken == sha1($userid . $user->password . $CFG->calendar_exportsalt); 28//allowing for fallback check of old url - MDL-27542 28//allowing for fallback check of old url - MDL-27542 29$authusername = !empty($username) && $authtoken == sha1($username . $user->password . $CFG->calendar_exportsalt); 30if (!$authuserid && !$authusername) { 46if (!empty($generateurl)) { 47 $authtoken = sha1($user->id . $user->password . $CFG->calendar_exportsalt); 48 $params = array();TextStatistics.php https://github.com/jimmytidey/jimmytidey.co.uk.git | PHP | 414 lines
1<?php 2/** 17 * 18 * @link http://code.google.com/p/php-text-statistics/ 19 * @link https://github.com/DaveChild/Text-Statistics (new repo location) 19 * @link https://github.com/DaveChild/Text-Statistics (new repo location) 20 * @license http://www.opensource.org/licenses/bsd-license.php New BSD license 21 * 131 132 $key = sha1( $strText ); 133connection.php https://github.com/jrdoane/core.git | PHP | 434 lines
1<?php 2/** 8 * @copyright (c) 2008-2009 Kohana Team 9 * @license http://kohanaphp.com/license 10 */ 23 24 // Identifier for this connection within the PHP driver 25 protected $_connection_id; 46 // Determine if we can use mysqli_set_charset(), which is only 47 // available on PHP 5.2.3+ when compiled against MySQL 5.0+ 48 static::$_set_names = ! function_exists('mysqli_set_charset'); 103 104 // \xFF is a better delimiter, but the PHP driver uses underscore 105 $this->_connection_id = sha1($hostname.'_'.$username.'_'.$password);Store.php https://gitlab.com/hatemdigify/digifyblog | PHP | 707 lines
1<?php 2 196 { 197 return sha1(uniqid('', true).Str::random(25).microtime(true)); 198 }ReplicationStrategyTest.php https://gitlab.com/xolotsoft/pumasruiz | PHP | 382 lines
1<?php 2 175 $cmdEval = $profile->createCommand('EVAL', array($writeScript)); 176 $cmdEvalSHA = $profile->createCommand('EVALSHA', array(sha1($writeScript))); 177 $this->assertFalse($strategy->isReadOperation($cmdEval)); 180 $cmdEval = $profile->createCommand('EVAL', array($readScript)); 181 $cmdEvalSHA = $profile->createCommand('EVALSHA', array(sha1($readScript))); 182 $this->assertTrue($strategy->isReadOperation($cmdEval));Repo.php https://gitlab.com/scribe-inc/ScribeGitHubApiLibrary | PHP | 438 lines
1<?php 2 424 * @param string $base The name of the base branch that the head will be merged into. 425 * @param string $head The head to merge. This can be a branch name or a commit SHA1. 426 * @param string $message Commit message to use for the merge commit. If omitted, a default message will be used.install-location.php https://github.com/nsswaga/OSClass.git | PHP | 418 lines
1<?php 2//error_reporting(E_ALL); 10require_once LIB_PATH . 'osclass/db.php'; 11require_once LIB_PATH . 'osclass/classes/DAO.php'; 12require_once LIB_PATH . 'osclass/helpers/hDatabaseInfo.php'; 12require_once LIB_PATH . 'osclass/helpers/hDatabaseInfo.php'; 13require_once LIB_PATH . 'osclass/install-functions.php'; 14require_once LIB_PATH . 'osclass/formatting.php'; 15require_once LIB_PATH . 'osclass/compatibility.php'; 16require_once LIB_PATH . 'osclass/utils.php'; 17require_once LIB_PATH . 'osclass/helpers/hPreference.php' ; 96 try{ 97 require_once LIB_PATH . 'phpmailer/class.phpmailer.php' ; 98 $mail = new PHPMailer(true) ; 113 } 114 }catch(phpmailerException $exception) { 115AbstractEntityPersister.php https://gitlab.com/remyvianne/krowkaramel | PHP | 369 lines
1<?php 2declare (strict_types=1); 24use function serialize; 25use function sha1; 26abstract class AbstractEntityPersister implements CachedEntityPersister 144 [$params] = $criteria instanceof Criteria ? $this->persister->expandCriteriaParameters($criteria) : $this->persister->expandParameters($criteria); 145 return sha1($query . serialize($params) . serialize($orderBy) . $limit . $offset); 146 }smarty_internal_config.php https://github.com/raphaelbastide/berta.git | PHP | 270 lines
1<?php 2/** 139 (int)$this->smarty->config_overwrite * 4; 140 $_filepath = sha1($this->config_resource_name . $_flag); 141 // if use_sub_dirs, break file into directories 151 } 152 return $_compile_dir . $_filepath . '.' . basename($this->config_resource_name) . '.config' . '.php'; 153 } 238 if (isset($this->template)) { 239 $this->template->properties['file_dependency'][sha1($this->getConfigFilepath())] = array($this->getConfigFilepath(), $this->getTimestamp()); 240 } else { 240 } else { 241 $this->smarty->properties['file_dependency'][sha1($this->getConfigFilepath())] = array($this->getConfigFilepath(), $this->getTimestamp()); 242 }BasesfGuardUser.class.php https://github.com/arturolinares/asandbox.git | PHP | 199 lines
1<?php 2 78 * @author Your name here 79 * @version SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $ 80 */ 99 'type' => 'string', 100 'default' => 'sha1', 101 'notnull' => true,PageCacheTest.php https://bitbucket.org/aswinvk28/smartpan-stock-drupal.git | PHP | 250 lines
1<?php 2 65 $cid_parts = array(url($path, array('absolute' => TRUE)), 'html'); 66 $cid = sha1(implode(':', $cid_parts)); 67 $cache_entry = \Drupal::cache('page')->get($cid); 205 * 206 * The test should pass even if zlib.output_compression is enabled in php.ini, 207 * .htaccess or similar, or if compression is done outside PHP, e.g. by theauth_component.php https://github.com/jamilsonbatista/Memory-Game.git | PHP | 360 lines
1<?php 2/** 4 * 5 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 6 * @copyright Copyright 2008-2009, Spaghetti* Framework (http://spaghettiphp.org/) 33 */ 34 public $hash = "sha1"; 35 /**classtrees_OpenID.html https://github.com/yupe/xomaprojects.git | HTML | 208 lines
55 56<h2>Root class Auth_OpenID_DiffieHellmanSHA1ConsumerSession</h2> 57<ul> 57<ul> 58<li><a href="OpenID/Auth_OpenID_DiffieHellmanSHA1ConsumerSession.html">Auth_OpenID_DiffieHellmanSHA1ConsumerSession</a><ul> 59<li><a href="OpenID/Auth_OpenID_DiffieHellmanSHA256ConsumerSession.html">Auth_OpenID_DiffieHellmanSHA256ConsumerSession</a></li></ul></li> 63<ul> 64<li><a href="OpenID/Auth_OpenID_DiffieHellmanSHA1ServerSession.html">Auth_OpenID_DiffieHellmanSHA1ServerSession</a><ul> 65<li><a href="OpenID/Auth_OpenID_DiffieHellmanSHA256ServerSession.html">Auth_OpenID_DiffieHellmanSHA256ServerSession</a></li></ul></li> 177<ul> 178<li><a href="OpenID/Auth_Yadis_PHPSession.html">Auth_Yadis_PHPSession</a></li></ul> 179 204 <p class="notes" id="credit"> 205 Documentation generated on Tue, 21 Apr 2009 11:31:28 -0700 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.3.2</a> 206 </p>WebhookTesting.php https://gitlab.com/cividesk-civicrm/com.cividesk.payment.braintree | PHP | 391 lines
1<?php 2namespace Braintree; 8 $payload = base64_encode(self::_sampleXml($kind, $id)) . "\n"; 9 $signature = Configuration::publicKey() . "|" . Digest::hexDigestSha1(Configuration::privateKey(), $payload); 10ImagesController.php https://gitlab.com/jensdwul1/nmdad3.local | PHP | 362 lines
1<?php 2 223 $uploadDirectory = 'uploads'; 224 $fileName = sha1_file($file->getRealPath()).'.'.$file->guessExtension(); 225 $fileLocator = realpath($this->getParameter('kernel.root_dir').DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'web').DIRECTORY_SEPARATOR.$uploadDirectory;user.php https://github.com/meltingice/Osimo-Forum-System-v1.git | PHP | 381 lines
1<?php 2/* 5* 6* os-includes/ajax/user.php - ajax backend for user modification 7*/ 9include_once('../dbconnect.php'); //connects to database 10include_once('../paths.php'); 11include_once('../osimo.php'); 109 $curPassword = sha1(secureContent($curPassword)); 110 $newPassword = sha1(secureContent($newPassword)); 111 $newPassword2 = sha1(secureContent($newPassword2)); 237 <div id="memberlist-wrap"> 238 <p><?php echo $numMembers; ?> Members | Page <span id="osimo_memberlist-curpage"><?php echo $page; ?></span> of <span id="osimo_memberlist-totpage"><?php echo $osimo->getPagination('table=users', 'num=15'); ?></span></p> 239 <table cellpadding='4' cellspacing='0' id="memberlist"> 248 249 <?php 250 foreach($memberlist as $member)home.php https://github.com/codyaustun/PASS.git | PHP | 305 lines
1<?php // Home page to process login, signup, show html 2 2 3require_once 'info.php'; //database access information 4 22$salt = "At MIT 6.470 is one of the best IAP classes to take."; 23$hash = sha1($password.$salt); // hash password for security 24 47echo "You have logged in!"; 48header("Location: dashboard.php"); 49 69$salt = "At MIT 6.470 is one of the best IAP classes to take."; 70$hash = sha1($password.$salt); //hash password for security 71$date = date("Y-m-d",time()); 133 <div id="login"> 134 <form id="loginForm" method="post" action="home.php" > 135 <table>Auth_OpenID_DiffieHellmanSHA256ServerSession.html https://github.com/yupe/xomaprojects.git | HTML | 246 lines
26 <p class="notes"> 27 Located in <a class="field" href="_Auth---OpenID---Server.php.html">/Auth/OpenID/Server.php</a> (line <span class="field">555</span>) 28 </p> 166 <dl> 167 <dt><a href="../OpenID/Auth_OpenID_DiffieHellmanSHA1ServerSession.html#var$session_type">Auth_OpenID_DiffieHellmanSHA1ServerSession::$session_type</a></dt> 168 <dd>An object that knows how to handle association requests with the Diffie-Hellman session type.</dd> 175 <A NAME='inherited_vars'><!-- --></A> 176 <p>Inherited from <span class="classname"><a href="../OpenID/Auth_OpenID_DiffieHellmanSHA1ServerSession.html">Auth_OpenID_DiffieHellmanSHA1ServerSession</a></span></p> 177 <blockquote> 178 <span class="var-title"> 179 <span class="var-name"><a href="../OpenID/Auth_OpenID_DiffieHellmanSHA1ServerSession.html#var$needs_math">Auth_OpenID_DiffieHellmanSHA1ServerSession::$needs_math</a></span><br> 180 </span> 231 <blockquote> 232 <span class="method-name"><a href="../OpenID/Auth_OpenID_DiffieHellmanSHA1ServerSession.html#methodAuth_OpenID_DiffieHellmanSHA1ServerSession">Auth_OpenID_DiffieHellmanSHA1ServerSession::Auth_OpenID_DiffieHellmanSHA1ServerSession()</a></span><br> 233 <span class="method-name"><a href="../OpenID/Auth_OpenID_DiffieHellmanSHA1ServerSession.html#methodanswer">Auth_OpenID_DiffieHellmanSHA1ServerSession::answer()</a></span><br>unpack.php https://gitlab.com/milo-ft/osTicket | PHP | 270 lines
54 # Read the main.inc.php script 55 $bootstrap_php = $this->destination . '/bootstrap.php'; 56 $lines = explode("\n", file_get_contents($bootstrap_php)); 75 } 76 if (!file_put_contents($bootstrap_php, implode("\n", $lines))) 77 die("Unable to configure location of INCLUDE_DIR in bootstrap.php\n"); 116 $md5 = md5_file($file); 117 $sha1 = sha1_file($file); 118 $hash = substr($md5, -20) . substr($sha1, -20); 151 * exclude - (string | array<string>) patterns that will be matched 152 * using the PHP `fnmatch` function. If any file or folder matches, 153 * it will be excluded from the copy procedure. Omit or use false 206 $pipes = array(); 207 $php = proc_open('php', array( 208 0 => array('pipe', 'r'),smarty_cacheresource_custom.php https://github.com/usualoma/movabletype.git | PHP | 297 lines
1<?php 2/** 87 $path = $cached->source->uid . $_cache_id . $_compile_id; 88 $cached->filepath = sha1($path); 89 if ($_template->smarty->cache_locking) { 89 if ($_template->smarty->cache_locking) { 90 $cached->lock_id = sha1('lock.' . $path); 91 }upgrade.php https://github.com/totara/moodle.git | PHP | 324 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 85 if ($oldversion < 2013081301) { 86 require_once($CFG->dirroot . '/mod/scorm/lib.php'); 87 $scorms = $DB->get_recordset('scorm', array('scormtype' => 'imsrepository')); 91 $scorm->reference = $CFG->repository.substr($scorm->reference, 1).'/imsmanifest.xml'; 92 $scorm->sha1hash = sha1($scorm->reference); 93 } 166 if (!empty($hide)) { 167 require_once($CFG->dirroot . '/mod/scorm/lib.php'); 168 set_config('nav', SCORM_NAV_DISABLED, 'scorm');provider.php https://bitbucket.org/chakkimatti/vv2.git | PHP | 289 lines
1<?php namespace OneAuth\OAuth; 2 86 */ 87 protected $signature = 'HMAC-SHA1'; 88FileStore.php https://github.com/sunnysujan/wikireader.git | PHP | 360 lines
1<?php 2 192 193 require_once 'StreamFile.php'; 194 wfStreamFile( $path ); 227 wfSuppressWarnings(); 228 $hash = sha1_file( $path ); 229 wfRestoreWarnings();AWSAuthTest.php https://bitbucket.org/freshflow/sabredav-1.8.5-fork.git | PHP | 242 lines
1<?php 2 4 5require_once 'Sabre/HTTP/ResponseMock.php'; 6 6 7class AWSAuthTest extends \PHPUnit_Framework_TestCase { 8 190 191 $sig = base64_encode($this->hmacsha1($secretKey, 192 "POST\n$contentMD5\n\n$date\nx-amz-date:$date\n/evert" 222 /** 223 * Generates an HMAC-SHA1 signature 224 * 236 $opad=str_repeat(chr(0x5c),$blocksize); 237 $hmac = pack('H*',sha1(($key^$opad).pack('H*',sha1(($key^$ipad).$message)))); 238 return $hmac;mysql.rb https://github.com/wdeconinck/homebrew.git | Ruby | 194 lines
6 version '5.5.25a' 7 sha1 '85dfea413a7d5d2733a40f9dd79cf2320302979f' 8 33 # This facilitates easy compilation of gems using a brewed mysql 34 # Also fix compilation with Xcode and no CLT: http://bugs.mysql.com/bug.php?id=66001 35 def patches; DATA; endEncrypt.php https://bitbucket.org/kurniawanchan83/codeigniter.git | PHP | 507 lines
1<?php 2/** 4 * 5 * An open source application development framework for PHP 5.2.4 or newer 6 * 53 */ 54 protected $_hash_type = 'sha1'; 55 485 */ 486 public function set_hash($type = 'sha1') 487 { 487 { 488 $this->_hash_type = in_array($type, hash_algos()) ? $type : 'sha1'; 489 } 505 506/* End of file Encrypt.php */ 507/* Location: ./system/libraries/Encrypt.php */Cookie.php https://github.com/ibnoe/Microweber.git | PHP | 396 lines
1<?php 2/** 6 * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later 7 * @version $Id: Cookie.php 4302 2011-04-04 00:24:06Z vipsoft $ 8 * 118 * setcookie() replacement -- we don't use the built-in function because 119 * it is buggy for some PHP versions. 120 * 120 * 121 * @link http://php.net/setcookie 122 * 205 if(substr($content, -43, 3) == self::VALUE_SEPARATOR . '_=' && 206 $signature == sha1(substr($content, 0, -40) . Piwik_Common::getSalt())) 207 { 214 /** 215 * Load the cookie content into a php array. 216 * Parses the cookie string to extract the different variables.filescheck.php https://gitlab.com/ricardosanchez/prueba | PHP | 272 lines
52 53 /** @var bool Is the fileslist.php reporting a version different than the reported component version? */ 54 protected $wrongFilesVersion = false; 112 113 // Make sure the fileslist.php version and date match the component's version 114 if ($this->version != $phpFileChecker['version']) 124 // Initialise the files and directories lists 125 $this->fileList = $phpFileChecker['files']; 126 $this->dirList = $phpFileChecker['directories']; 240 { 241 $fileSha1 = @sha1_file($filePath); 242 244 { 245 $ret['files'][] = $fileKey . ' (SHA1 ' . $fileSha1 . ' ≠' . $fileData[2] . ')'; 246 }stats.php https://gitlab.com/lankerd/paGO---Testing-Site | PHP | 569 lines
1<?php 2/** 13 * Statistics system plugin. This sends anonymous data back to the Joomla! Project about the 14 * PHP, SQL, Joomla and OS versions 15 * 324 'unique_id' => $this->getUniqueId(), 325 'php_version' => PHP_VERSION, 326 'db_type' => $this->db->name, 328 'cms_version' => JVERSION, 329 'server_os' => php_uname('s') . ' ' . php_uname('r') 330 ); 343 { 344 $this->uniqueId = $this->params->get('unique_id', hash('sha1', JUserHelper::genRandomPassword(28) . time())); 345 }Util.php https://bitbucket.org/sonnylazuardi/konsol.git | PHP | 389 lines
1<?php 2/** 2/** 3 * Slim - a micro PHP 5 framework 4 * 191 { 192 $key = hash_hmac('sha1', $expires, $secret); 193 $iv = self::get_iv($expires, $secret); 197 ))); 198 $verificationString = hash_hmac('sha1', $expires . $value, $key); 199 221 if (count($value) === 3 && ((int) $value[0] === 0 || (int) $value[0] > time())) { 222 $key = hash_hmac('sha1', $value[0], $secret); 223 $iv = self::get_iv($value[0], $secret); 304 * instead of PHP's native `setcookie` method. This allows more control of the HTTP header 305 * irrespective of PHP's native implementation's dependency on PHP versions. 306 *ext_hash.cpp https://bitbucket.org/gnanakeethan/hiphop-php.git | C++ | 407 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 11 | http://www.php.net/license/3_01.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 | 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 +----------------------------------------------------------------------+ 29#include "hphp/runtime/ext/hash/hash_haval.h" 30#include "hphp/runtime/ext/hash/hash_fnv1.h" 31#include "hphp/runtime/ext/hash/hash_furc.h" 52 HashEngines["md5"] = HashEnginePtr(new hash_md5()); 53 HashEngines["sha1"] = HashEnginePtr(new hash_sha1()); 54 HashEngines["sha224"] = HashEnginePtr(new hash_sha224());helper.php https://github.com/nikosdion/Akeeba-Example.git | PHP | 582 lines
1<?php 2/** 324 case 'sha': 325 $encrypted = base64_encode(mhash(MHASH_SHA1, $plaintext)); 326 return ($show_encrypt) ? '{SHA}' . $encrypted : $encrypted; 338 case 'ssha': 339 $encrypted = base64_encode(mhash(MHASH_SHA1, $plaintext . $salt) . $salt); 340 return ($show_encrypt) ? '{SSHA}' . $encrypted : $encrypted; 461 { 462 return mhash_keygen_s2k(MHASH_SHA1, $plaintext, substr(pack('h*', md5(mt_rand())), 0, 8), 4); 463 } 523 { 524 $stat = array(php_uname()); 525 }Cache.php https://github.com/abirmmu/codeigniter-cache.git | PHP | 431 lines
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); 2 106 107 $cache_file = $property.DIRECTORY_SEPARATOR.do_hash($method.serialize($arguments), 'sha1'); 108 301 { 302 // create non existing dirs, asumes PHP5 303 if ( ! @mkdir($test_path, DIR_WRITE_MODE, TRUE)) return FALSE; 429 430/* End of file Cache.php */ 431/* Location: ./application/libraries/Cache.php */Security.php https://github.com/sidealice/zf2.git | PHP | 279 lines
1<?php 2/** 58 /** 59 * The URI for Signature Method SHA1 60 */ 60 */ 61 const SIGNATURE_METHOD_SHA1 = 'http://www.w3.org/2000/09/xmldsig#rsa-sha1'; 62 63 /** 64 * The URI for Digest Method SHA1 65 */ 65 */ 66 const DIGEST_METHOD_SHA1 = 'http://www.w3.org/2000/09/xmldsig#sha1'; 67 126 switch((string)$sxe->Signature->SignedInfo->SignatureMethod['Algorithm']) { 127 case self::SIGNATURE_METHOD_SHA1: 128 $sMethod = (string)$sxe->Signature->SignedInfo->SignatureMethod['Algorithm'];Cache.php https://github.com/sirmokk/pyrocms.git | PHP | 431 lines
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); 2 106 107 $cache_file = $property.DIRECTORY_SEPARATOR.dohash($method.serialize($arguments), 'sha1'); 108 301 { 302 // create non existing dirs, asumes PHP5 303 if ( ! @mkdir($test_path, DIR_WRITE_MODE, TRUE)) return FALSE; 429 430/* End of file Cache.php */ 431/* Location: ./application/libraries/Cache.php */Rsa.php https://github.com/sidealice/zf2.git | PHP | 306 lines
1<?php 2/** 53 54 protected $_hashAlgorithm = OPENSSL_ALGO_SHA1; 55 197 $resource = openssl_pkey_new($config); 198 // above fails on PHP 5.3 199 256 break; 257 case 'sha1': 258 $this->_hashAlgorithm = OPENSSL_ALGO_SHA1;String.php https://github.com/pmjones/php-framework-benchmarks.git | PHP | 374 lines
1<?php 2/** 2/** 3 * Lithium: the most rad php framework 4 * 6 * Copyright 2009, Cake Software Foundation, Inc. (http://cakefoundation.org) 7 * @license http://opensource.org/licenses/mit-license.php The MIT License 8 */ 62 * @param string $string String to hash. 63 * @param string $type Method to use (sha1/sha256/md5, or any method supported 64 * by the `hash()` function). 67 */ 68 public static function hash($string, $type = 'sha1', $salt = null) { 69 $string = $salt . $string; 71 switch (true) { 72 case ($type == 'sha1' && function_exists('sha1')): 73 return sha1($string);Translator.php https://github.com/yethee/symfony.git | PHP | 458 lines
1<?php 2 328 $content = sprintf(<<<EOF 329<?php 330 379 { 380 return $this->cacheDir.'/catalogue.'.$locale.'.'.sha1(serialize($this->fallbackLocales)).'.php'; 381 }blti.php https://github.com/pauln/moodle.git | PHP | 277 lines
1<?php 2 2 3require_once($CFG->dirroot . '/enrol/lti/ims-blti/OAuth.php'); 4require_once($CFG->dirroot . '/enrol/lti/ims-blti/TrivialOAuthDataStore.php'); 77 78 $method = new OAuthSignatureMethod_HMAC_SHA1(); 79 $server->add_signature_method($method); 188 $grav_url = $_SERVER['HTTPS'] ? 'https://' : 'http://'; 189 $grav_url = $grav_url . "www.gravatar.com/avatar.php?gravatar_id=".md5( strtolower($email) )."&size=".$size; 190 return $grav_url; 231 $host = $_SERVER['HTTP_HOST']; 232 $uri = $_SERVER['PHP_SELF']; 233 $location = $_SERVER['HTTPS'] ? 'https://' : 'http://';wps-optimization.php https://gitlab.com/kath.de/cibedo_cibedo.de | PHP | 267 lines
242 <div id="resources"> 243 <?php include( dirname( __FILE__ ) . '/tabs/wps-optimization-resources.php' ); ?> 244 </div> 250 <div id="purging"> 251 <?php include( dirname( __FILE__ ) . '/tabs/wps-optimization-purging.php' ); ?> 252 </div> 254 <div id="database"> 255 <?php include( dirname( __FILE__ ) . '/tabs/wps-optimization-database.php' ); ?> 256 </div> 258 <div id="updates"> 259 <?php include( dirname( __FILE__ ) . '/tabs/wps-optimization-updates.php' ); ?> 260 </div> 262 <div id="historical"> 263 <?php include( dirname( __FILE__ ) . '/tabs/wps-optimization-historical.php' ); ?> 264 </div>Queue.php https://github.com/ksecor/civicrm.git | PHP | 290 lines
1<?php 2 35 36require_once 'CRM/Mailing/Event/DAO/Queue.php'; 37require_once 'CRM/Mailing/BAO/Job.php'; 37require_once 'CRM/Mailing/BAO/Job.php'; 38require_once 'CRM/Mailing/BAO/Mailing.php'; 39 39 40require_once 'CRM/Contact/BAO/Contact.php'; 41 79 80 return substr( sha1( "{$jobId}:{$emailId}:{$contactId}:" . time( ) ), 81 0, 16 );postgres-xc.rb https://github.com/bakotaco/homebrew.git | Ruby | 304 lines
5 url 'https://downloads.sourceforge.net/project/postgres-xc/Version_1.0/pgxc-v1.0.3.tar.gz' 6 sha1 '76774cf32810dfa14b2174f2e939d3b28eb211a9' 7 25 # Fix PL/Python build: https://github.com/Homebrew/homebrew/issues/11162 26 # Fix uuid-ossp build issues: http://archives.postgresql.org/pgsql-general/2012-07/msg00654.php 27 patch :DATA 31 32 # See http://sourceforge.net/mailarchive/forum.php?thread_name=82E44F89-543A-44F2-8AF8-F6909B5DC561%40uniud.it&forum_name=postgres-xc-bugs 33 ENV.append 'CFLAGS', '-D_FORTIFY_SOURCE=0 -O2' if MacOS.version >= :mavericksyii.php https://github.com/AlexMarlo/web-file-manager.git | PHP | 206 lines
1<?php 2/** 26 'Authorization item "{item}" has already been assigned to user "{user}".' => '', 27 'CApcCache requires PHP apc extension to be loaded.' => '', 28 'CAssetManager.basePath "{path}" is invalid. Please make sure the directory exists and is writable by the Web server process.' => '', 59 'CHttpSession.savePath "{path}" is not a valid directory.' => '', 60 'CMemCache requires PHP memcache extension to be loaded.' => '', 61 'CMemCache server configuration must be an array.' => '', 65 'CProfileLogRoute.report "{report}" is invalid. Valid values include "summary" and "callstack".' => '', 66 'CSecurityManager requires PHP mcrypt extension to be loaded in order to use data encryption feature.' => '', 67 'CSecurityManager.encryptionKey cannot be empty.' => '', 67 'CSecurityManager.encryptionKey cannot be empty.' => '', 68 'CSecurityManager.validation must be either "MD5" or "SHA1".' => '', 69 'CSecurityManager.validationKey cannot be empty.' => '', 71 'CUrlManager.UrlFormat must be either "path" or "get".' => '', 72 'CXCache requires PHP XCache extension to be loaded.' => '', 73 'Cache table "{tableName}" does not exist.' => '',smarty_internal_config.php https://github.com/lewellyn/TrellisDesk.git | PHP | 302 lines
1<?php 2/** 106 + (int) $this->smarty->config_overwrite * 4; 107 $_filepath = sha1($this->source->name . $_flag); 108 // if use_sub_dirs, break file into directories 119 $_compile_dir = $this->smarty->getCompileDir(); 120 return $_compile_dir . $_filepath . '.' . basename($this->source->name) . '.config' . '.php'; 121 } 210 if ($this->data instanceof Smarty_Internal_Template) { 211 $this->data->properties['file_dependency'][sha1($this->source->filepath)] = array($this->source->filepath, $this->source->timestamp, 'file'); 212 }affiliate.php https://gitlab.com/dadangnh/sb1-bon | PHP | 180 lines
1<?php 2class ModelAffiliateAffiliate extends Model { 3 public function addAffiliate($data) { 4 $this->db->query("INSERT INTO " . DB_PREFIX . "affiliate SET firstname = '" . $this->db->escape($data['firstname']) . "', lastname = '" . $this->db->escape($data['lastname']) . "', email = '" . $this->db->escape($data['email']) . "', telephone = '" . $this->db->escape($data['telephone']) . "', fax = '" . $this->db->escape($data['fax']) . "', salt = '" . $this->db->escape($salt = token(9)) . "', password = '" . $this->db->escape(sha1($salt . sha1($salt . sha1($data['password'])))) . "', company = '" . $this->db->escape($data['company']) . "', website = '" . $this->db->escape($data['website']) . "', address_1 = '" . $this->db->escape($data['address_1']) . "', address_2 = '" . $this->db->escape($data['address_2']) . "', city = '" . $this->db->escape($data['city']) . "', postcode = '" . $this->db->escape($data['postcode']) . "', country_id = '" . (int)$data['country_id'] . "', zone_id = '" . (int)$data['zone_id'] . "', code = '" . $this->db->escape(uniqid()) . "', commission = '" . (float)$this->config->get('config_affiliate_commission') . "', tax = '" . $this->db->escape($data['tax']) . "', payment = '" . $this->db->escape($data['payment']) . "', cheque = '" . $this->db->escape($data['cheque']) . "', paypal = '" . $this->db->escape($data['paypal']) . "', bank_name = '" . $this->db->escape($data['bank_name']) . "', bank_branch_number = '" . $this->db->escape($data['bank_branch_number']) . "', bank_swift_code = '" . $this->db->escape($data['bank_swift_code']) . "', bank_account_name = '" . $this->db->escape($data['bank_account_name']) . "', bank_account_number = '" . $this->db->escape($data['bank_account_number']) . "', status = '1', approved = '" . (int)!$this->config->get('config_affiliate_approval') . "', date_added = NOW()"); 5 90 public function editPassword($email, $password) { 91 $this->db->query("UPDATE " . DB_PREFIX . "affiliate SET salt = '" . $this->db->escape($salt = token(9)) . "', password = '" . $this->db->escape(sha1($salt . sha1($salt . sha1($password)))) . "' WHERE LOWER(email) = '" . $this->db->escape(utf8_strtolower($email)) . "'"); 92 }indexPage.class.php https://github.com/openstate/Watstemtmijnraad.git | PHP | 332 lines
1<?php 2require_once('Raadsstuk.class.php'); 2require_once('Raadsstuk.class.php'); 3require_once('LocalParty.class.php'); 4require_once('Region.class.php'); 4require_once('Region.class.php'); 5require_once('smarty/dist/plugins/modifier.truncate.php'); 6 87 try { 88 $key = sha1(serialize(array_intersect_key($get, $params))); 89 if(opensocial_readcache($key)) {GdataMedia.php https://gitlab.com/Japang-Jawara/jawara-penilaian | PHP | 547 lines
1<?php 2/* 109 */ 110 public $sha1Hash; 111 /** 490 */ 491 public function setSha1Hash($sha1Hash) 492 { 492 { 493 $this->sha1Hash = $sha1Hash; 494 } 497 */ 498 public function getSha1Hash() 499 { 499 { 500 return $this->sha1Hash; 501 }SecurityTest.php https://bitbucket.org/projectangelfaces/project-angel-faces.git | PHP | 305 lines
2/** 3 * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> 4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 10 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 11 * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests 12 * @since CakePHP(tm) v 1.2.0.5432 12 * @since CakePHP(tm) v 1.2.0.5432 13 * @license http://www.opensource.org/licenses/mit-license.php MIT License 14 */ 69 * 70 * @expectedException PHPUnit_Framework_Error 71 * @return void 119 $this->assertSame(strlen(Security::hash($key, null, true)), 40); 120 $this->assertSame(strlen(Security::hash($key, 'sha1', true)), 40); 121user.class.php https://github.com/goldfrapper/DMS.git | PHP | 403 lines
1<?php 2/** 224 $col = ($email_login)? 'email':'name'; 225 $stat = $pdo->query("SELECT * FROM dms_users WHERE $col='$login' AND pass=SHA1('$pass');"); 226 $this->_setDataFromDB($stat); 280 $sql = "UPDATE dms_users SET name='{$this->name}',fname='{$this->fname}',email='{$this->email}'"; 281 if($pass!==null) $sql.= ",pass=SHA1('$pass')"; 282 $sql.= " WHERE id={$this->id}"; 285 $sql = 'INSERT INTO dms_users (name,pass,fname,email) VALUES ('; 286 $sql.= "'{$this->name}',SHA1('$pass'),'{$this->fname}','{$this->email}') "; 287 } else { 316 317 $r = $pdo->exec("UPDATE dms_users SET pass=SHA1('$new_pass') WHERE id={$this->id}"); 318 if($r===false) throw new DMS_Exceptions_CannotResetUser();Store.php https://github.com/ad2joe/php-framework-benchmarks.git | PHP | 406 lines
1<?php 2 151 if (!$response->headers->has('X-Content-Digest')) { 152 $digest = 'en'.sha1($response->getContent()); 153 358 359 return $this->keyCache[$request] = 'md'.sha1($request->getUri()); 360 }user.php https://github.com/cgajardo/repositorium.git | PHP | 265 lines
1<?php 2class User extends AppModel { 140 $this->data['User']['salt'] = mt_rand(); 141 $this->data['User']['password'] = sha1($this->data['User']['password'] . $this->data['User']['salt']); 142 } 184 $pass_to_check = $d['User']['password']; 185 $pass_from_login = sha1($data['User']['password'] . $d['User']['salt']); 186 if(strcmp($pass_to_check,$pass_from_login) == 0) {index.php https://gitlab.com/jonnialva90/iridium-browser | PHP | 288 lines
1<?php 2/** 26require_once 'lib/oauth/OAuth.php'; 27require_once 'lib/lightopenid/openid.php'; 28 31 'https'; 32$selfUrl = "$scheme://{$_SERVER['HTTP_HOST']}{$_SERVER['PHP_SELF']}"; 33 53 $this->token = new OAuthToken(self::TOKEN, self::TOKEN_SECRET); 54 $this->signatureMethod = new OAuthSignatureMethod_HMAC_SHA1(); 55 } 181 <?php else: ?> 182 <span>Welcome <?php echo @$_SESSION['attributes']['namePerson/first'] ?> <?php echo @$_SESSION['attributes']['namePerson/last'] ?> ( <?php echo $_SESSION['attributes']['contact/email'] ?> )</span> 183 <a href="?logout">Sign out</a> 183 <a href="?logout">Sign out</a> 184 <?php endif; ?> 185 </nav>util.py https://github.com/nowells/GitPython.git | Python | 345 lines
4# This module is part of GitPython and is released under 5# the BSD License: http://www.opensource.org/licenses/bsd-license.php 6 21__all__ = ( "stream_copy", "join_path", "to_native_path_windows", "to_native_path_linux", 22 "join_path_native", "Stats", "IndexFileSHA1Writer", "Iterable", "IterableList", 23 "BlockingLockFile", "LockFile" ) 80 81 c = Commit( sha1 ) 82 s = c.stats 124 125class IndexFileSHA1Writer(object): 126 """Wrapper around a file-like object that remembers the SHA1 of 132 :note: Based on the dulwich project""" 133 __slots__ = ("f", "sha1") 134member_import_lang.php https://bitbucket.org/mbaily/tremain.git | PHP | 301 lines
1<?php 2 231'If a password was not supplied, your imported members will need to use the "Forgot Password" link 232to log in. Also, if your ExpressionEngine encryption settings (sha1/md5) do not match the encryption 233type of your imported data, the passwords will not work, and affected members will need to use the 299 300/* End of file member_import_lang.php */ 301/* Location: ./system/expressionengine/language/english/member_import_lang.php */sql_querys.php https://github.com/badboy/devbird.git | PHP | 149 lines
119('AJAX-Autosave', 2, 'an', 'an|aus', 'Soll der Editor mittels AJAX Artikel automatisch zwischenspeichern?', 1, 8), 120('Standardcodesprache', 3, 'c', '\$dir:/admin/geshi/geshi/ -.php', 'Standardmäßig verwendete Sprache für GeSHi (Syntaxhighlighter)', 1, 9); 121SETTINGS; 123$salt_pw = mt_rand(); 124$hashed = sha1('--' . $salt_pw . '--' . $user_password); 125$user_insert = <<<USERS 138(0, 1, 'index', 'Home', 'Zur Startseite'), 139(0, 2, 'search.php', 'Suche', 'Suche und finde Artikel'), 140(1, 0, 'http://badboy.pytalhost.de/', 'BadBoy_', 'Blog des Programmierers hinter Devbird ');class.jetpack-client.php https://github.com/chopsuei3/oscc.git | PHP | 215 lines
1<?php 2 47 48 require_once dirname( __FILE__ ) . '/class.jetpack-signature.php'; 49 62 } 63 $body_hash = jetpack_sha1_base64( $body ); 64 } 72 73 if ( false !== strpos( $args['url'], 'xmlrpc.php' ) ) { 74 $url_args = array(installer_lang.php https://github.com/stegwee/stegwee.eu.git | PHP | 158 lines
15$lang['license_number'] = 'ExpressionEngine License Number'; 16$lang['locate_license_number'] = 'Available in the <a href="https://secure./download.php">download area</a> of the site.'; 17$lang['name_of_index'] = 'Name of the index page of your ExpressionEngine site'; 17$lang['name_of_index'] = 'Name of the index page of your ExpressionEngine site'; 18$lang['normally_index'] = 'Unless you renamed the file it will be named <strong>index.php</strong>'; 19$lang['url_of_index'] = 'URL to the directory where the above index page is located'; 47$lang['encrypt_type'] = 'What type of password encryption do you prefer?'; 48$lang['sha1_recommended'] = '<strong>SHA1</strong> is recommended since it is more secure, but MD5 can be used for more broad compatibility with other PHP applications.'; 49$lang['create_account'] = 'Create Your Admin Account'; 82$lang['invalid_action'] = 'The action you have requested is not valid.'; 83$lang['unreadable_config'] = 'Your config.php file is unreadable. Please make sure the file exists and that the file permissions to 666 (or the equivalent write permissions for your server) on the following file: expressionengine/config/config.php'; 84$lang['unwritable_config'] = 'Your config.php file does not appear to have the proper file permissions. Please set the file permissions to 666 (or the equivalent write permissions for your server) on the following file: expressionengine/config/config.php'; 84$lang['unwritable_config'] = 'Your config.php file does not appear to have the proper file permissions. Please set the file permissions to 666 (or the equivalent write permissions for your server) on the following file: expressionengine/config/config.php'; 85$lang['unreadable_database'] = 'Your database.php file is unwriteable. Please make sure the file exists and that the file permissions to 666 (or the equivalent write permissions for your server) on the following file: expressionengine/config/database.php'; 86$lang['unwritable_database'] = 'Your database.php file does not appear to have the proper file permissions. Please set the file permissions to 666 (or the equivalent write permissions for your server) on the following file: expressionengine/config/database.php';users.php git://github.com/q2a/question2answer.git | PHP | 417 lines
1<?php 2/* 18 19 More about this license: http://www.question2answer.org/license.php 20*/ 37 38 return sha1(substr($salt, 0, 8) . $password . substr($salt, 8)); 39} 52{ 53 require_once QA_INCLUDE_DIR . 'util/string.php'; 54 206 207 require_once QA_INCLUDE_DIR . 'util/string.php'; 208 247 248 require_once QA_INCLUDE_DIR . 'util/string.php'; 249Google.php https://github.com/michaelmcandrew/citylink.git | PHP | 274 lines
1<?php 2 35 36require_once 'CRM/Core/Payment.php'; 37 151 $cartVal = base64_encode($cart->GetXML()); 152 $signatureVal = base64_encode($cart->CalcHmacSha1($cart->GetXML())); 153 156 157 require_once 'HTTP/Request.php'; 158 $params = array( 'method' => HTTP_REQUEST_METHOD_POST, 266 static function getArrayFromXML( $xmlData ) { 267 require_once 'Google/library/xml-processing/xmlparser.php'; 268 $xmlParser = new XmlParser($xmlData);Pop3Socket.php git://github.com/infinitas/infinitas.git | PHP | 273 lines
1<?php 2App::uses('EmailSocket', 'Emails.Network'); 4/** 5 * A pop3 driver for the email socket to recive emails without the php-imap extention 6 * 146 ); 147 $listItem['id'] = sha1(serialize($listItem)); 148 $this->mailList[$parts[0]] = $listItem;yui_combo.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 288 lines
30 31// we need just the values from config.php and minlib.php 32define('ABORT_AFTER_CONFIG', true); 32define('ABORT_AFTER_CONFIG', true); 33require('../config.php'); // this stops immediately at the beginning of lib/setup.php 34 41 42$etag = sha1($parts); 43$parts = trim($parts, '&'); 94 define('NO_MOODLE_COOKIES', true); 95 require($CFG->libdir.'/setup.php'); 96 } 170 171 $filecontent = preg_replace('/([a-z0-9_-]+)\.(png|gif)/', $relroot . '/theme/yui_image.php' . implode('/', $imagebits), $filecontent); 172 } else if ($version == '2in3') {index.php https://github.com/Doap/FrogCMS.git | PHP | 251 lines
68 $admin_passwd_precrypt = '12'.dechex(rand(100000000, 4294967295)).'K'; 69 $admin_passwd = sha1($admin_passwd_precrypt); 70 } 94 95 include 'schema_'.$_POST['config']['db_driver'].'.php'; 96 include 'sql_data.php'; 133<?php } ?> 134<?php if ( ! is_writable('../public/')): ?> 135 <strong>Error</strong>: public/ folder must be writable<br /> 138 139<?php if ( ! defined('DEBUG')): ?> 140<form action="index.php" method="post"> 247<div id="footer"> 248 <p>This system was made with <a href="http://www.php.net" target="_blank">PHP</a> and is powered by <a href="http://www.madebyfrog.com/">Frog CMS</a></p> 249</div>ConsumerTest.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 280 lines
1<?php 2/** 22 23require_once 'Zend/Oauth/Consumer.php'; 24 32 */ 33class Zend_Oauth_ConsumerTest extends PHPUnit_Framework_TestCase 34{ 57 $options = array( 58 'signatureMethod' => 'rsa-sha1' 59 ); 60 $consumer = new Zend_Oauth_Consumer($options); 61 $this->assertEquals('RSA-SHA1', $consumer->getSignatureMethod()); 62 }Config.php https://github.com/jorgenils/zend-framework.git | PHP | 555 lines
1<?php 2/** 22/** Zend_Oauth */ 23require_once 'Zend/Oauth.php'; 24 25/** Zend_Uri */ 26require_once 'Zend/Uri.php'; 27 28/** Zend_Oauth_Config_Interface */ 29require_once 'Zend/Oauth/Config/Interface.php'; 30 44 */ 45 protected $_signatureMethod = 'HMAC-SHA1'; 46 291 ))) { 292 require_once 'Zend/Oauth/Exception.php'; 293 throw new Zend_Oauth_Exception(SourceCgit.php https://github.com/cocox/source-integration.git | PHP | 372 lines
1<?php 2/** 9if ( !defined('testing') ) { 10 if ( false === include_once( config_get( 'plugin_path' ) . 'Source/MantisSourcePlugin.class.php' ) ) { 11 return; 13 14 require_once( config_get( 'core_path' ) . 'url_api.php' ); 15} 94?> 95<tr <?php echo helper_alternate_class() ?>> 96<td class="category"><?php echo plugin_lang_get( 'cgit_root' ) ?></td> 96<td class="category"><?php echo plugin_lang_get( 'cgit_root' ) ?></td> 97<td><input name="cgit_root" maxlength="250" size="40" value="<?php echo string_attribute( $t_cgit_root ) ?>"/></td> 98</tr> 98</tr> 99<tr <?php echo helper_alternate_class() ?>> 100<td class="category"><?php echo plugin_lang_get( 'cgit_project' ) ?></td>smarty_internal_cacheresource_file.php https://gitlab.com/staging06/myproject | PHP | 300 lines
1<?php 2/** 60 } 61 $cached->lock_id = $_lock_dir . sha1($_cache_id . $_compile_id . $_template->source->uid) . '.lock'; 62 } 62 } 63 $cached->filepath = $_cache_dir . $_cache_id . $_compile_id . $_filepath . '.' . basename($_source_file_path) . '.php'; 64 $cached->timestamp = @filemtime($cached->filepath); 180 if (isset($_templateId[150])) { 181 $_templateId = sha1($_templateId); 182 } 196 foreach ($_cache as $_file) { 197 if (substr(basename($_file->getPathname()), 0, 1) == '.' || strpos($_file, '.svn') !== false || strpos($_file, 'index.php') !== false) { 198 continue; 262 { 263 if (version_compare(PHP_VERSION, '5.3.0', '>=')) { 264 clearstatcache(true, $cached->lock_id);connection.php https://github.com/abdelm/stationwagon.git | PHP | 458 lines
1<?php 2/** 8 * @copyright (c) 2008-2009 Kohana Team 9 * @license http://kohanaphp.com/license 10 */ 33 /** 34 * @var string Identifier for this connection within the PHP driver 35 */ 62 // Determine if we can use mysqli_set_charset(), which is only 63 // available on PHP 5.2.3+ when compiled against MySQL 5.0+ 64 static::$_set_names = ! function_exists('mysqli_set_charset'); 119 120 // \xFF is a better delimiter, but the PHP driver uses underscore 121 $this->_connection_id = sha1($hostname.'_'.$username.'_'.$password);DKIMSignerTest.php git://github.com/swiftmailer/swiftmailer.git | PHP | 220 lines
1<?php 2 24 25 // SHA1 Signing 26 public function testSigningSHA1() 30 $signer = new Swift_Signers_DKIMSigner(file_get_contents(dirname(dirname(dirname(__DIR__))).'/_samples/dkim/dkim.test.priv'), 'dummy.nxdomain.be', 'dummySelector'); 31 $signer->setHashAlgorithm('rsa-sha1'); 32 $signer->setSignatureTimestamp('1299879181'); 44 $sig = reset($dkim); 45 $this->assertEquals($sig->getValue(), 'v=1; a=rsa-sha1; bh=wlbYcY9O9OPInGJ4D0E/rGsvMLE=; d=dummy.nxdomain.be; h=; i=@dummy.nxdomain.be; s=dummySelector; t=1299879181; b=RMSNelzM2O5MAAnMjT3G3/VF36S3DGJXoPCXR001F1WDReu0prGphWjuzK/m6V1pwqQL8cCNg Hi74mTx2bvyAvmkjvQtJf1VMUOCc9WHGcm1Yec66I3ZWoNMGSWZ1EKAm2CtTzyG0IFw4ml9DI wSkyAFxlgicckDD6FibhqwX4w='); 46 } 67 $sig = reset($dkim); 68 $this->assertEquals($sig->getValue(), 'v=1; a=rsa-sha256; bh=f+W+hu8dIhf2VAni89o8lF6WKTXi7nViA4RrMdpD5/U=; d=dummy.nxdomain.be; h=; i=@dummy.nxdomain.be; s=dummySelector; t=1299879181; b=jqPmieHzF5vR9F4mXCAkowuphpO4iJ8IAVuioh1BFZ3VITXZj5jlOFxULJMBiiApm2keJirnh u4mzogj444QkpT3lJg8/TBGAYQPdcvkG3KC0jdyN6QpSgpITBJG2BwWa+keXsv2bkQgLRAzNx qRhP45vpHCKun0Tg9LrwW/KCg='); 69 }TwitterAPIExchange.php https://gitlab.com/Skull3x/pocketmine-plugins | PHP | 376 lines
1<?php 2namespace aliuly\livesigns; 4/** 5 * Twitter-API-PHP : Simple PHP wrapper for the v1.1 API 6 * 6 * 7 * PHP version 5.3.10 8 * 9 * @category Awesomeness 10 * @package Twitter-API-PHP 11 * @author James Mallison <me@j7mbo.co.uk> 12 * @license MIT License 13 * @link http://github.com/j7mbo/twitter-api-php 14 */ 202 'oauth_nonce' => time(), 203 'oauth_signature_method' => 'HMAC-SHA1', 204 'oauth_token' => $oauth_access_token,Pbkdf2.php git://github.com/rchouinard/phpass.git | PHP | 290 lines
2/** 3 * PHP Password Library 4 * 11 12namespace Phpass\Hash\Adapter; 13 28 29 const DIGEST_SHA1 = 'sha1'; 30 const DIGEST_SHA256 = 'sha256'; 72 if ($matches['digest'] == '') { 73 $matches['digest'] = $matches[1] = self::DIGEST_SHA1; 74 } 271 */ 272 protected function _pbkdf2($password, $salt, $iterationCount = 1000, $keyLength = 20, $algo = 'sha1') 273 {Translator.php https://gitlab.com/techniconline/kmc | PHP | 440 lines
1<?php 2 351 $content = sprintf(<<<EOF 352<?php 353 377 { 378 return $this->cacheDir . '/catalogue.' . $locale . '.' . sha1(serialize($this->fallbackLocales)) . '.php'; 379 }AbstractBlockTest.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 319 lines
1<?php 2/** 21 22class AbstractBlockTest extends \PHPUnit_Framework_TestCase 23{ 29 /** 30 * @var EventManagerInterface|\PHPUnit_Framework_MockObject_MockObject 31 */ 34 /** 35 * @var ScopeConfigInterface|\PHPUnit_Framework_MockObject_MockObject 36 */ 39 /** 40 * @var CacheStateInterface|\PHPUnit_Framework_MockObject_MockObject 41 */ 44 /** 45 * @var CacheInterface|\PHPUnit_Framework_MockObject_MockObject 46 */session.php https://gitlab.com/webkod3r/tripolis | PHP | 440 lines
1<?php 2/** 63 final private function hash_token( $token ) { 64 // If ext/hash is not present, use sha1() instead. 65 if ( function_exists( 'hash' ) ) { 67 } else { 68 return sha1( $token ); 69 }smarty_internal_cacheresource_file.php https://gitlab.com/adamlwalker/generatedata | PHP | 264 lines
1<?php 2/** 60 } 61 $cached->lock_id = $_lock_dir.sha1($_cache_id.$_compile_id.$_template->source->uid).'.lock'; 62 } 62 } 63 $cached->filepath = $_cache_dir . $_cache_id . $_compile_id . $_filepath . '.' . basename($_source_file_path) . '.php'; 64 $cached->timestamp = @filemtime($cached->filepath); 162 if (isset($_templateId[150])) { 163 $_templateId = sha1($_templateId); 164 } 229 { 230 if (version_compare(PHP_VERSION, '5.3.0', '>=')) { 231 clearstatcache(true, $cached->lock_id);config.html https://github.com/mrmark/moodle.git | HTML | 289 lines
1<?php 2 global $OUTPUT; 58<tr valign="top" class="required"> 59 <td align="right"><label for="host"><?php print_string("auth_dbhost_key", "auth_db") ?></label></td> 60 <td> 60 <td> 61 <input id="host" name="host" type="text" class="text-ltr" size="30" value="<?php echo $config->host?>" /> 62 <?php 69 </td> 70 <td><?php print_string("auth_dbhost", "auth_db") ?></td> 71</tr> 73<tr valign="top" class="required"> 74 <td align="right"><label for="menutype"><?php print_string("auth_dbtype_key", "auth_db") ?></label></td> 75 <td> 195 $passtype["md5"] = get_string("md5", "auth"); 196 $passtype["sha1"] = get_string("sha1", "auth"); 197 $passtype["saltedcrypt"] = get_string("auth_dbsaltedcrypt", "auth_db");hybi.js https://gitlab.com/blocknotary/IonicInterviews | JavaScript | 474 lines
54Hybi.generateAccept = function(key) { 55 var sha1 = crypto.createHash('sha1'); 56 sha1.update(key + Hybi.GUID); 56 sha1.update(key + Hybi.GUID); 57 return sha1.digest('base64'); 58}; 100 101 // http://www.w3.org/International/questions/qa-forms-utf-8.en.php 102 UTF8_MATCH: /^([\x00-\x7F]|[\xC2-\xDF][\x80-\xBF]|\xE0[\xA0-\xBF][\x80-\xBF]|[\xE1-\xEC\xEE\xEF][\x80-\xBF]{2}|\xED[\x80-\x9F][\x80-\xBF]|\xF0[\x90-\xBF][\x80-\xBF]{2}|[\xF1-\xF3][\x80-\xBF]{3}|\xF4[\x80-\x8F][\x80-\xBF]{2})*$/,ext_string.h https://gitlab.com/Blueprint-Marketing/hhvm | C Header | 346 lines
11 | http://www.php.net/license/3_01.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 | 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 +----------------------------------------------------------------------+ 22#include "hphp/runtime/ext/extension.h" 23#include "hphp/runtime/base/zend-string.h" 24#include "hphp/runtime/base/zend-printf.h" 31 32extern const HPHP::StaticString k_HPHP_TRIM_CHARLIST; 33extern const int64_t k_STR_PAD_RIGHT; 169 bool raw_output = false); 170String HHVM_FUNCTION(sha1, 171 const String& str,packet-asf.c git://pkgs.fedoraproject.org/wireshark | C | 390 lines
40 * See 41 * http://www.dmtf.org/standards/standard_alert.php 42 * http://www.dmtf.org/standards/documents/ASF/DSP0136.pdf 130static const value_string asf_authentication_type_vals[] = { 131 { 0x01, "RAKP-HMAC-SHA1" }, 132 { 0x00, NULL } 135static const value_string asf_integrity_type_vals[] = { 136 { 0x01, "HMAC-SHA1-96" }, 137 { 0x00, NULL }aws_s3.php https://github.com/talmdal/gallery3-contrib.git | PHP | 330 lines
1<?php defined("SYSPATH") or die("No direct script access."); 2 12 if (!self::$_s3) { 13 require_once(MODPATH . "aws_s3/lib/s3.php"); 14 S3::setAuth(module::get_var("aws_s3", "access_key"), module::get_var("aws_s3", "secret_key")); 21 return base64_encode(extension_loaded('hash') ? 22 hash_hmac('sha1', $string, module::get_var("aws_s3", "secret_key"), true) : pack('H*', sha1( 23 (str_pad(module::get_var("aws_s3", "secret_key"), 64, chr(0x00)) ^ (str_repeat(chr(0x5c), 64))) . 23 (str_pad(module::get_var("aws_s3", "secret_key"), 64, chr(0x00)) ^ (str_repeat(chr(0x5c), 64))) . 24 pack('H*', sha1((str_pad(module::get_var("aws_s3", "secret_key"), 64, chr(0x00)) ^ 25 (str_repeat(chr(0x36), 64))) . $string))))); 234 static function validate_access_details($access_key, $secret_key, $bucket_name) { 235 require_once(MODPATH . "aws_s3/lib/s3.php"); 236 S3::setAuth($access_key, $secret_key);kalkun_model.php https://github.com/alimashuri/custom_kalkun.git | PHP | 422 lines
1<?php 2/** 7 * @author Kalkun Dev Team 8 * @license http://kalkun.sourceforge.net/license.php 9 * @link http://kalkun.sourceforge.net 46 $username = $this->input->post('username'); 47 $password = sha1($this->input->post('password')); 48 $this->db->from('user'); 247 case 'password': 248 $this->db->set('password', sha1($this->input->post('new_password'))); 249 $this->db->where('id_user', $this->session->userdata('id_user')); 420 421/* End of file kalkun_model.php */ 422/* Location: ./application/models/kalkun_model.php */Subscribe.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 404 lines
1<?php 2/* 34 35require_once 'Mail/mime.php'; 36 147 $se->time_stamp = date('YmdHis'); 148 $se->hash = substr(sha1("{$group_id}:{$contact_id}:{$dao->email_id}:" . time()), 149 0, 16customer_model.php https://bitbucket.org/adrianricardo/newstatus.git | PHP | 469 lines
1<?php 2Class Customer_model extends CI_Model 195 $this->db->where('active', 1); 196 $this->db->where('password', sha1($password)); 197 $this->db->limit(1); 404 $new_password = random_string('alnum', 8); 405 $customer['password'] = sha1($new_password); 406 $this->save($customer);usergroup_admin_add.php https://github.com/md-tech/openemr.git | PHP | 424 lines
1<?php 2require_once("../globals.php"); 3require_once("../../library/acl.inc"); 4require_once("$srcdir/sha1.js"); 5require_once("$srcdir/sql.inc"); 5require_once("$srcdir/sql.inc"); 6require_once("$srcdir/formdata.inc.php"); 7require_once("$srcdir/options.inc.php"); 7require_once("$srcdir/options.inc.php"); 8require_once(dirname(__FILE__) . "/../../library/classes/WSProvider.class.php"); 9require_once("$srcdir/erx_javascript.inc.php"); 168<tr> 169<td><span class="text"<?php if ($GLOBALS['disable_non_default_groups']) echo " style='display:none'"; ?>><?php xl('Groupname','e'); ?>: </span></td> 170<td> 201?> 202<option value="<?php echo $iter{id};?>"><?php echo $iter{name};?></option> 203<?phppaymentrequestplus.cpp https://gitlab.com/Ltaimao/bitcoin | C++ | 210 lines
2// Distributed under the MIT software license, see the accompanying 3// file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 79 } 80 else if (paymentRequest.pki_type() == "x509+sha1") { 81 digestAlgorithm = EVP_sha1();file.php https://github.com/jongwook/ksa14-kohana.git | PHP | 466 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 32 * * Kohana 3.0.x 33 * * PHP 5.2.4 or greater 34 * 38 * @copyright (c) 2009-2010 Kohana Team 39 * @license http://kohanaphp.com/license 40 */ 54 { 55 return sha1($string).'.cache'; 56 } 79 } 80 // PHP < 5.3 exception handle 81 catch (ErrorException $e) 447 * 448 * @see http://php.net/manual/en/function.mkdir.php 449 * @param string directoryqq_OAuth.php http://ownerpress.googlecode.com/svn/trunk/ | PHP | 328 lines
1<?php 2/** 191 function __construct($consumer_key, $consumer_secret, $oauth_token = NULL, $oauth_token_secret = NULL) { 192 $this->sha1_method = new OAuthSignatureMethod_HMAC_SHA1(); 193 $this->consumer = new OAuthConsumer($consumer_key, $consumer_secret); 301 $request = OAuthRequest::from_consumer_and_token($this->consumer, $this->token, $method, $url, $parameters); 302 $request->sign_request($this->sha1_method, $this->consumer, $this->token); 303 switch ($method) {Attribute.php https://bitbucket.org/saifshuvo/zf2.git | PHP | 372 lines
1<?php 2/** 258 case self::PASSWORD_HASH_SSHA: 259 $salt = substr(sha1(uniqid(mt_rand(), true), true), 0, 4); 260 $rawHash = sha1($password . $salt, true) . $salt; 263 case self::PASSWORD_HASH_SHA: 264 $rawHash = sha1($password, true); 265 $method = '{SHA}'; 267 case self::PASSWORD_HASH_SMD5: 268 $salt = substr(sha1(uniqid(mt_rand(), true), true), 0, 4); 269 $rawHash = md5($password . $salt, true) . $salt;slideshare_external_repository_manager_connector.class.php https://bitbucket.org/chamilo/chamilo-ext-repo-slideshare-dev/ | PHP | 304 lines
1<?php 2namespace common\extensions\external_repository_manager\implementation\slideshare; 21 22require_once dirname(__FILE__) . '/slideshare_external_repository_object.class.php'; 23require_once dirname(__FILE__) . '/webservices/slideshare_rest_client.class.php'; 62 $date = time(); 63 $hash = sha1($this->consumer_secret . $date); 64 $params = array(); 112 $date = time(); 113 $hash = sha1($this->consumer_secret . $date); 114 $params = array(); 182 183 /* (non-PHPdoc) 184 * @see application/common/external_repository_manager/ExternalRepositoryManagerConnector#retrieve_external_repository_object() 188 $date = time(); 189 $hash = sha1($this->consumer_secret . $date); 190 $params = array();EntitySource.php https://github.com/hpgihan/cronus.git | PHP | 273 lines
1<?php 2 5 * 6 * @package simpleSAMLphp 7 * @version $Id$ 100 101 $this->cacheId = sha1($this->url); 102 $this->cacheTag = sha1(serialize($config)); 122 $context['ssl']['verify_peer'] = TRUE; 123 $context['ssl']['CN_match'] = parse_url($this->url, PHP_URL_HOST); 124 } 176 /* Extract the public key from the certificate for validation. */ 177 $key = new XMLSecurityKey(XMLSecurityKey::RSA_SHA1, array('type'=>'public')); 178 $key->loadKey($file, TRUE);complete.php https://gitlab.com/blueprintmrk/bladencountyrecords | PHP | 206 lines
1<?php 2require( 'common.php' ); 14 $partial = stripslashes( $_POST['partial'] ); 15 if ( hash_hmac( 'sha1', $partial, $secret ) != $_POST['signature'] ) { 16 return; 112 } else if ( preg_match( '#^:set #', $string ) ) { 113 foreach ( PHP_Shell_Options::getInstance()->getOptions() as $v ) { 114 $m[] = $v; 141 142 /* taken from http://de3.php.net/manual/en/reserved.php */ 143 $m[] = 'abstract';SecurityExtensionTest.php https://bitbucket.org/vvanuytven/php_auto.git | PHP | 200 lines
1<?php 2 20 21abstract class SecurityExtensionTest extends \PHPUnit_Framework_TestCase 22{ 149 'class' => new Parameter('security.encoder.digest.class'), 150 'arguments' => array('sha1', false, 5), 151 ), 158 'class' => new Parameter('security.encoder.pbkdf2.class'), 159 'arguments' => array('sha1', false, 5, 30), 160 ),r2t.php git://github.com/chregu/rss2twi.php.git | PHP | 273 lines
1<?php 2 14 protected function init() { 15 include_once ("sfYaml/sfYaml.class.php"); 16 define('R2T_TEMP_DIR', R2T_PROJECT_DIR . "/tmp/"); 75 $this->debug("create " . $options['shortener'] . " class"); 76 include_once ("r2t/shortener/" . $options['shortener'] . ".php"); 77 $classname = "r2t_shortener_" . $options['shortener']; 92 // check if something was posted with that link already 93 include_once("HTTP/Request.php"); 94 if (isset($options['twitter']['user'])) { 132 133 $oauth = new OAuth($conskey,$conssec,OAUTH_SIG_METHOD_HMACSHA1,OAUTH_AUTH_TYPE_URI); 134 $oauth->debug = 1; 150 if (!empty($options['prowlApiKey'])) { 151 include_once('ProwlPHP/ProwlPHP.php'); 152 $prowl = new Prowl($options['prowlApiKey']);tweet.php https://gitlab.com/fbi/socialtools | PHP | 641 lines
1<?php 2 282 private $_accessTokenUrl = 'http://api.twitter.com/oauth/access_token'; 283 private $_signatureMethod = 'HMAC-SHA1'; 284 private $_version = '1.0'; 631 { 632 case 'HMAC-SHA1': 633 $key = $this->_encode_rfc3986($this->_getConsumerSecret()) . '&' . $this->_encode_rfc3986($this->_getAccessSecret()); 633 $key = $this->_encode_rfc3986($this->_getConsumerSecret()) . '&' . $this->_encode_rfc3986($this->_getAccessSecret()); 634 $retval = base64_encode(hash_hmac('sha1', $string, $key, true)); 635 break;gmailoath.php https://gitlab.com/engrmuhammadawais/test.git | PHP | 410 lines
1<?php 2 18 19 ////////////////// global.php open////////////// 20 function logit($msg, $preamble=true) { 320 $signature_key = $this->rfc3986_encode($consumer_secret) . '&' . $this->rfc3986_encode($token_secret); 321 $sig = base64_encode(hash_hmac('sha1', $base_string, $signature_key, true)); 322 if ($this->debug) { 362 // Decompose and pull query params out of the url 363 $query_str = parse_url($url, PHP_URL_QUERY); 364 if ($query_str) {mysql.php https://github.com/drslice/regform.git | PHP | 381 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 8 * @copyright (c) 2008-2009 Kohana Team 9 * @license http://kohanaphp.com/license 10 */ 18 19 // Identifier for this connection within the PHP driver 20 protected $_connection_id; 32 // Determine if we can use mysql_set_charset(), which is only 33 // available on PHP 5.2.3+ when compiled against MySQL 5.0+ 34 Database_MySQL::$_set_names = ! function_exists('mysql_set_charset'); 71 72 // \xFF is a better delimiter, but the PHP driver uses underscore 73 $this->_connection_id = sha1($hostname.'_'.$username.'_'.$password); 137 { 138 // PHP is compiled against MySQL 4.x 139 $status = (bool) mysql_query('SET NAMES '.$this->quote($charset), $this->_connection);compat.php https://gitlab.com/thisishayat/itv-2016 | PHP | 339 lines
2/** 3 * WordPress implementation for PHP functions either missing from older PHP versions or not included by default. 4 * 4 * 5 * @package PHP 6 * @access private 161function _hash_hmac($algo, $data, $key, $raw_output = false) { 162 $packs = array('md5' => 'H32', 'sha1' => 'H40'); 163 188 if ( ! ( $wp_json instanceof Services_JSON ) ) { 189 require_once( ABSPATH . WPINC . '/class-json.php' ); 190 $wp_json = new Services_JSON(); 232 * 233 * This function was added in PHP 5.6. 234 * It can leak the length of a string.rsa-sign.js https://github.com/lloyd/jwcrypto.git | JavaScript | 155 lines
9// This software is licensed under the terms of the MIT License. 10// http://www.opensource.org/licenses/mit-license.php 11// 16// Depends on: 17// function sha1.hex(s) of sha1.js 18// jsbn.js 31var _RSASIGN_DIHEAD = []; 32_RSASIGN_DIHEAD['sha1'] = "3021300906052b0e03021a05000414"; 33_RSASIGN_DIHEAD['sha256'] = "3031300d060960864801650304020105000420"; 38var _RSASIGN_HASHHEXFUNC = []; 39_RSASIGN_HASHHEXFUNC['sha1'] = sha1.hex; 40_RSASIGN_HASHHEXFUNC['sha256'] = sha256.hex; 149RSAKey.prototype.signString = _rsasign_signString; 150RSAKey.prototype.signStringWithSHA1 = _rsasign_signStringWithSHA1; 151RSAKey.prototype.signStringWithSHA256 = _rsasign_signStringWithSHA256;CryptSha1.c https://gitlab.com/envieidoc/Clover | C | 184 lines
64 // 65 return (BOOLEAN) (SHA1_Init ((SHA_CTX *) Sha1Context)); 66} 90 // 91 if (Sha1Context == NULL || NewSha1Context == NULL) { 92 return FALSE; 94 95 CopyMem (NewSha1Context, Sha1Context, sizeof (SHA_CTX)); 96 142 // 143 return (BOOLEAN) (SHA1_Update ((SHA_CTX *) Sha1Context, Data, DataSize)); 144} 182 // 183 return (BOOLEAN) (SHA1_Final (HashValue, (SHA_CTX *) Sha1Context)); 184}Remember.php https://bitbucket.org/myockey/clearcreek-chapel-website.git | PHP | 328 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2 271 { 272 return sha1(uniqid(mt_rand(), TRUE)); 273 } 326 327/* End of file Remember.php */ 328/* Location: ./system/expressionengine/libraries/Remember.php */PostImageHandler.php https://gitlab.com/wubbajack/insided-test | PHP | 288 lines
1<?php namespace App\Core\Handlers; 2 251 252 return hash('sha1', $prefix . microtime() . $file->getBasename()) . $extension; 253 }