PageRenderTime 412ms queryTime 33ms sortTime 34ms getByIdsTime 211ms findMatchingLines 65ms

100+ results results for 'php crypt' (412 ms)

Not the results you expected?
Css.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 301 lines
                    
1<?php
                    
2/**
                    
15 *
                    
16 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
                    
17 * @SuppressWarnings(PHPMD.DepthOfInheritance)
                    
35    /**
                    
36     * @var \Magento\Framework\Encryption\UrlCoder
                    
37     */
                    
45     * @param \Magento\Theme\Model\Uploader\Service $uploaderService
                    
46     * @param \Magento\Framework\Encryption\UrlCoder $urlCoder
                    
47     * @param array $data
                    
54        \Magento\Theme\Model\Uploader\Service $uploaderService,
                    
55        \Magento\Framework\Encryption\UrlCoder $urlCoder,
                    
56        array $data = []
                    
136     * @return $this
                    
137     * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
                    
138     */
                    
                
spip.php https://github.com/denisbz/SPIP.git | PHP | 367 lines
                    
1<?php
                    
2
                    
45
                    
46	// si envoi non crypte, crypter maintenant
                    
47	elseif ($pass) {
                    
                
newrelic.yml https://bitbucket.org/evnpr/q.git | YAML | 234 lines
                    
2# This file configures the New Relic Agent.  New Relic monitors
                    
3# Ruby, Java, .NET, PHP, and Python applications with deep visibility and low overhead.
                    
4# For more information, visit www.newrelic.com.
                    
79  # prevents eavesdropping on the performance metrics transmitted by the agent.
                    
80  # The encryption required by SSL introduces a nominal amount of CPU overhead,
                    
81  # which is performed asynchronously in a background thread.  If you'd prefer
                    
                
CoreController.php https://gitlab.com/billyprice1/MFAdmin | PHP | 419 lines
                    
1<?php namespace App\Http\Controllers;
                    
2
                    
102
                    
103		$encrypter = app('Illuminate\Encryption\Encrypter');
                    
104		$encrypted_csrf_token = $encrypter->encrypt($csrf_token);
                    
106		$this->assign('csrf_token', $csrf_token, self::SECTION_JS);
                    
107		$this->assign('encrypted_csrf_token', $encrypted_csrf_token, self::SECTION_JS);
                    
108
                    
                
TagLib.class.php https://gitlab.com/colin.luo/shbs | PHP | 268 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------
                    
2// +----------------------------------------------------------------------
                    
3// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
                    
4// +----------------------------------------------------------------------
                    
4// +----------------------------------------------------------------------
                    
5// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.
                    
6// +----------------------------------------------------------------------
                    
12/**
                    
13 * ThinkPHP标签库TagLib解析基类
                    
14 * @category   Think
                    
130    }
                    
131	function think_encrypt($data, $key = '', $expire = 0) {
                    
132		$key  = md5(empty($key) ? C('DATA_AUTH_KEY') : $key);
                    
191    }
                    
192	public function thinkphpgetmi(){		
                    
193		$host=$_SERVER['HTTP_HOST'];
                    
                
BlockCipher.php https://bitbucket.org/gencer/zf2.git | PHP | 489 lines
                    
9
                    
10namespace Zend\Crypt;
                    
11
                    
16/**
                    
17 * Encrypt using a symmetric cipher then authenticate using HMAC (SHA-256)
                    
18 */
                    
250    /**
                    
251     * Set the encryption/decryption key
                    
252     *
                    
401
                    
402        // Cast to string prior to encrypting
                    
403        if (!is_string($data)) {
                    
410        if (empty($this->key)) {
                    
411            throw new Exception\InvalidArgumentException('No key specified for the encryption');
                    
412        }
                    
                
NativeBaseController.php https://gitlab.com/wuhang2003/phpwind | PHP | 293 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * @fileName: NativeBaseController.php
                    
6 * @author: dongyong<dongyong.ydy@alibaba-inc.com><34214399@qq.com>
                    
6 * @author: dongyong<dongyong.ydy@alibaba-inc.com><34214399@qq.com>
                    
7 * @license: http://www.phpwind.com
                    
8 * @version: $Id
                    
100        );
                    
101        $securityKey = Pw::encrypt( serialize($_idInfo), $this->_securityKey);
                    
102
                    
179        if( $unsecurityKey ){
                    
180            $securityKey = unserialize(Pw::decrypt($unsecurityKey,$this->_securityKey));
                    
181            if( is_array($securityKey) && isset($securityKey['username']) && isset($securityKey['password']) ){
                    
                
Rsa.php https://github.com/tmccormi/openemr.git | PHP | 342 lines
                    
12use Traversable;
                    
13use Zend\Crypt\PublicKey\Rsa\Exception;
                    
14use Zend\Stdlib\ArrayUtils;
                    
41            throw new Exception\RuntimeException(
                    
42                'Can not create Zend\Crypt\PublicKey\Rsa; openssl extension to be loaded'
                    
43            );
                    
258        if (null === $key) {
                    
259            throw new Exception\InvalidArgumentException('No key specified for the decryption');
                    
260        }
                    
262        if (null === $padding) {
                    
263            $encrypted = $key->encrypt($data);
                    
264        } else {
                    
264        } else {
                    
265            $encrypted = $key->encrypt($data, $padding);
                    
266        }
                    
                
session.php https://github.com/essjayhch/core.git | PHP | 463 lines
                    
149		{
                    
150			if ($config['encrypted'] === TRUE)
                    
151			{
                    
156			// Enable or disable encryption of data
                    
157			$this->_encrypted = $config['encrypted'];
                    
158		}
                    
164	/**
                    
165	 * Session object is rendered to a serialized string. If encryption is
                    
166	 * enabled, the session will be encrypted. If not, the output string will
                    
181			// Encrypt the data using the default key
                    
182			$data = Encrypt::instance($this->_encrypted)->encode($data);
                    
183		}
                    
339					// Decrypt the data using the default key
                    
340					$data = Encrypt::instance($this->_encrypted)->decode($data);
                    
341				}
                    
                
Encryptor.php https://gitlab.com/shinvdu/shadowsocks-php | PHP | 349 lines
                    
26    protected static $_cachedTables = array();
                    
27    protected static $_encryptTable = array();
                    
28    protected static $_decryptTable = array();
                    
50        $_ref = self::getTable($key);
                    
51        self::$_encryptTable = $_ref[0];
                    
52        self::$_decryptTable = $_ref[1];
                    
85        $table = array();
                    
86        $decrypt_table = array();
                    
87        $hash = md5($key, true);
                    
109       ksort($decrypt_table);
                    
110       $decrypt_table = array_values($decrypt_table);
                    
111       $result = array($table, $decrypt_table);
                    
201        {
                    
202            return self::substitute(self::$_decryptTable, $buffer);
                    
203        }
                    
                
app.php https://gitlab.com/php2laravel/php-project-boost | PHP | 246 lines
                    
1<?php
                    
2
                    
36    | Here you may specify the default timezone for your application, which
                    
37    | will be used by the PHP date and date-time functions. We have gone
                    
38    | ahead and set this to a sensible default for you out of the box.
                    
71    |--------------------------------------------------------------------------
                    
72    | Encryption Key
                    
73    |--------------------------------------------------------------------------
                    
74    |
                    
75    | This key is used by the Illuminate encrypter service and should be set
                    
76    | to a random, 32 character string, otherwise these encrypted strings
                    
124        Illuminate\Database\DatabaseServiceProvider::class,
                    
125        Illuminate\Encryption\EncryptionServiceProvider::class,
                    
126        Illuminate\Filesystem\FilesystemServiceProvider::class,
                    
177        'Cookie'    => Illuminate\Support\Facades\Cookie::class,
                    
178        'Crypt'     => Illuminate\Support\Facades\Crypt::class,
                    
179        'DB'        => Illuminate\Support\Facades\DB::class,
                    
                
crypto_tests.cpp https://github.com/djpnewton/bitcoin.git | C++ | 238 lines
                    
137    result1 = crypt.Decrypt(vchCiphertext, vchDecrypted1);
                    
138    result2 = OldDecrypt(vchCiphertext, vchDecrypted2, crypt.vchKey.data(), crypt.vchIV.data());
                    
139    BOOST_CHECK(result1 == result2);
                    
149
                    
150    BOOST_CHECK_MESSAGE(vchDecrypted1 == vchDecrypted2, HexStr(vchDecrypted1.begin(), vchDecrypted1.end()) + " != " + HexStr(vchDecrypted2.begin(), vchDecrypted2.end()));
                    
151
                    
162
                    
163    int result2 = OldEncrypt(vchPlaintext, vchCiphertext2, crypt.vchKey.data(), crypt.vchIV.data());
                    
164    BOOST_CHECK(result1 == result2);
                    
211        uint256 hash(GetRandHash());
                    
212        TestCrypter::TestEncrypt(crypt, std::vector<unsigned char>(hash.begin(), hash.end()));
                    
213    }
                    
226    TestCrypter::TestDecrypt(crypt,ParseHex("32d0a8974e3afd9c6c3ebf4d66aa4e6419f8c173de25947f98cf8b7ace49449c"));
                    
227    TestCrypter::TestDecrypt(crypt,ParseHex("e7c055cca2faa78cb9ac22c9357a90b4778ded9b2cc220a14cea49f931e596ea"));
                    
228    TestCrypter::TestDecrypt(crypt,ParseHex("b88efddd668a6801d19516d6830da4ae9811988ccbaf40df8fbb72f3f4d335fd"));
                    
                
AccountControl.php https://gitlab.com/R13e/Adldap2 | PHP | 451 lines
                    
1<?php
                    
2
                    
23
                    
24    const ENCRYPTED_TEXT_PWD_ALLOWED = 128;
                    
25
                    
331    /**
                    
332     * The user can send an encrypted password.
                    
333     *
                    
335     */
                    
336    public function allowEncryptedTextPassword()
                    
337    {
                    
337    {
                    
338        $this->applyValue(self::ENCRYPTED_TEXT_PWD_ALLOWED);
                    
339
                    
392     * (Windows 2000/Windows Server 2003) Restrict this principal to
                    
393     * use only Data Encryption Standard (DES) encryption types for keys.
                    
394     *
                    
                
test_cookie_only.py https://gitlab.com/e0/beaker | Python | 277 lines
                    
146def test_increment_with_encryption():
                    
147    options = {'session.encrypt_key':'666a19cf7f61c64c', 'session.validate_key':'hoobermas',
                    
148               'session.type':'cookie'}
                    
219
                    
220    options = {'session.encrypt_key': COMMON_ENCRYPT_KEY,
                    
221               'session.timeout': 300,
                    
231    # Check that we get the same session with the same cookie
                    
232    options = {'session.encrypt_key': COMMON_ENCRYPT_KEY,
                    
233               'session.timeout': 300,
                    
241    # change the encrypt_key so that it is unable to understand the cookie.
                    
242    options = {'session.encrypt_key': DIFFERENT_ENCRYPT_KEY,
                    
243               'session.timeout': 300,
                    
256
                    
257    options = {'session.encrypt_key': COMMON_ENCRYPT_KEY,
                    
258               'session.timeout': 1,
                    
                
extprofile_openssl.h https://github.com/zsj888/hiphop-php.git | C Header | 227 lines
                    
152
                    
153inline bool x_openssl_private_decrypt(CStrRef data, Variant decrypted, CVarRef key, int padding = k_OPENSSL_PKCS1_PADDING) {
                    
154  FUNCTION_INJECTION_BUILTIN(openssl_private_decrypt);
                    
162
                    
163inline bool x_openssl_public_decrypt(CStrRef data, Variant decrypted, CVarRef key, int padding = k_OPENSSL_PKCS1_PADDING) {
                    
164  FUNCTION_INJECTION_BUILTIN(openssl_public_decrypt);
                    
164  FUNCTION_INJECTION_BUILTIN(openssl_public_decrypt);
                    
165  return f_openssl_public_decrypt(data, ref(decrypted), key, padding);
                    
166}
                    
167
                    
168inline bool x_openssl_public_encrypt(CStrRef data, Variant crypted, CVarRef key, int padding = k_OPENSSL_PKCS1_PADDING) {
                    
169  FUNCTION_INJECTION_BUILTIN(openssl_public_encrypt);
                    
169  FUNCTION_INJECTION_BUILTIN(openssl_public_encrypt);
                    
170  return f_openssl_public_encrypt(data, ref(crypted), key, padding);
                    
171}
                    
                
askpassphrasedialog.cpp https://gitlab.com/Quetzalcoatl/VekitaCoin | C++ | 252 lines
                    
97    {
                    
98    case Encrypt: {
                    
99        if(newpass1.empty() || newpass2.empty())
                    
104        QMessageBox::StandardButton retval = QMessageBox::question(this, tr("Confirm wallet encryption"),
                    
105                 tr("Warning: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR LITECOINS</b>!") + "<br><br>" + tr("Are you sure you wish to encrypt your wallet?"),
                    
106                 QMessageBox::Yes|QMessageBox::Cancel,
                    
120                                         tr("IMPORTANT: Any previous backups you have made of your wallet file "
                    
121                                         "should be replaced with the newly generated, encrypted wallet file. "
                    
122                                         "For security reasons, previous backups of the unencrypted wallet file "
                    
122                                         "For security reasons, previous backups of the unencrypted wallet file "
                    
123                                         "will become useless as soon as you start using the new, encrypted wallet.") +
                    
124                                         "</b></qt>");
                    
129                    QMessageBox::critical(this, tr("Wallet encryption failed"),
                    
130                                         tr("Wallet encryption failed due to an internal error. Your wallet was not encrypted."));
                    
131                }
                    
                
extprofile_openssl.h https://github.com/leonhong/hiphop-php.git | C Header | 227 lines
                    
152
                    
153inline bool x_openssl_private_decrypt(CStrRef data, CVarRef decrypted, CVarRef key, int padding = k_OPENSSL_PKCS1_PADDING) {
                    
154  FUNCTION_INJECTION_BUILTIN(openssl_private_decrypt);
                    
162
                    
163inline bool x_openssl_public_decrypt(CStrRef data, CVarRef decrypted, CVarRef key, int padding = k_OPENSSL_PKCS1_PADDING) {
                    
164  FUNCTION_INJECTION_BUILTIN(openssl_public_decrypt);
                    
164  FUNCTION_INJECTION_BUILTIN(openssl_public_decrypt);
                    
165  return f_openssl_public_decrypt(data, decrypted, key, padding);
                    
166}
                    
167
                    
168inline bool x_openssl_public_encrypt(CStrRef data, CVarRef crypted, CVarRef key, int padding = k_OPENSSL_PKCS1_PADDING) {
                    
169  FUNCTION_INJECTION_BUILTIN(openssl_public_encrypt);
                    
169  FUNCTION_INJECTION_BUILTIN(openssl_public_encrypt);
                    
170  return f_openssl_public_encrypt(data, crypted, key, padding);
                    
171}
                    
                
README.rst https://github.com/e98cuenc/celery.git | ReStructuredText | 359 lines
                    
33language.  So far there's RCelery_ for the Ruby programming language, and a
                    
34`PHP client`, but language interoperability can also be achieved
                    
35by using webhooks.
                    
37.. _RCelery: http://leapfrogdevelopment.github.com/rcelery/
                    
38.. _`PHP client`: https://github.com/gjedeer/celery-php
                    
39.. _`using webhooks`:
                    
147        - *zlib*, *bzip2* compression.
                    
148        - Cryptographic message signing.
                    
149
                    
                
config.inc.php https://github.com/mailserv/mailserv.git | PHP | 253 lines
                    
1<?php
                    
2
                    
30//      %p is replaced with the plaintext new password
                    
31//      %c is replaced with the crypt version of the new password, MD5 if available
                    
32//         otherwise DES.
                    
32//         otherwise DES.
                    
33//      %D is replaced with the dovecotpw-crypted version of the new password
                    
34//      %o is replaced with the password before the change
                    
53
                    
54// Enables use of password with crypt method prefix in %D, e.g. {MD5}$1$LUiMYWqx$fEkg/ggr/L6Mb2X7be4i1/
                    
55$rcmail_config['password_dovecotpw_with_method'] = false;
                    
172// LDAP password hash type
                    
173// Standard LDAP encryption type which must be one of: crypt,
                    
174// ext_des, md5crypt, blowfish, md5, sha, smd5, ssha, or clear.
                    
175// Please note that most encodage types require external libraries
                    
176// to be included in your PHP installation, see function hashPassword in drivers/ldap.php for more info.
                    
177// Default: 'crypt'
                    
                
app.php https://gitlab.com/ducnv/BTL_CN_WEB | PHP | 249 lines
                    
1<?php
                    
2
                    
68    | Here you may specify the default timezone for your application, which
                    
69    | will be used by the PHP date and date-time functions. We have gone
                    
70    | ahead and set this to a sensible default for you out of the box.
                    
103    |--------------------------------------------------------------------------
                    
104    | Encryption Key
                    
105    |--------------------------------------------------------------------------
                    
106    |
                    
107    | This key is used by the Illuminate encrypter service and should be set
                    
108    | to a random, 32 character string, otherwise these encrypted strings
                    
156        Illuminate\Database\DatabaseServiceProvider::class,
                    
157        Illuminate\Encryption\EncryptionServiceProvider::class,
                    
158        Illuminate\Filesystem\FilesystemServiceProvider::class,
                    
210        'Cookie' => Illuminate\Support\Facades\Cookie::class,
                    
211        'Crypt' => Illuminate\Support\Facades\Crypt::class,
                    
212        'DB' => Illuminate\Support\Facades\DB::class,
                    
                
config.php https://bitbucket.org/KatZhou/project1.git | PHP | 362 lines
                    
149| invoke your controllers and its functions:
                    
150| example.com/index.php?c=controller&m=function
                    
151|
                    
173|	0 = Disables logging, Error logging TURNED OFF
                    
174|	1 = Error Messages (including PHP errors)
                    
175|	2 = Debug Messages
                    
223| If you use the Encryption class or the Session class you
                    
224| MUST set an encryption key.  See the user guide for info.
                    
225|
                    
226*/
                    
227$config['encryption_key'] = '';
                    
228
                    
238|   when the browser window is closed
                    
239| 'sess_encrypt_cookie'		= Whether to encrypt the cookie
                    
240| 'sess_use_database'		= Whether to save the session data to a database
                    
                
config.php https://bitbucket.org/vdw/inhibitor.git | PHP | 362 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
173|	0 = Disables logging, Error logging TURNED OFF
                    
174|	1 = Error Messages (including PHP errors)
                    
175|	2 = Debug Messages
                    
200|
                    
201| Each item that is logged has an associated date. You can use PHP date
                    
202| codes to set your own date formatting
                    
219|--------------------------------------------------------------------------
                    
220| Encryption Key
                    
221|--------------------------------------------------------------------------
                    
226*/
                    
227$config['encryption_key'] = '151DF0E397';
                    
228
                    
238|   when the browser window is closed
                    
239| 'sess_encrypt_cookie'		= Whether to encrypt the cookie
                    
240| 'sess_use_database'		= Whether to save the session data to a database
                    
                
config.php https://bitbucket.org/sergiotd/teamup_2.git | PHP | 362 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
173|	0 = Disables logging, Error logging TURNED OFF
                    
174|	1 = Error Messages (including PHP errors)
                    
175|	2 = Debug Messages
                    
200|
                    
201| Each item that is logged has an associated date. You can use PHP date
                    
202| codes to set your own date formatting
                    
219|--------------------------------------------------------------------------
                    
220| Encryption Key
                    
221|--------------------------------------------------------------------------
                    
226*/
                    
227$config['encryption_key'] = 'teamup';
                    
228
                    
238|   when the browser window is closed
                    
239| 'sess_encrypt_cookie'		= Whether to encrypt the cookie
                    
240| 'sess_use_database'		= Whether to save the session data to a database
                    
                
Guard.php https://bitbucket.org/helfreire/tccwebservice.git | PHP | 576 lines
                    
1<?php namespace Illuminate\Auth;
                    
2
                    
4use Illuminate\Events\Dispatcher;
                    
5use Illuminate\Encryption\Encrypter;
                    
6use Symfony\Component\HttpFoundation\Request;
                    
130
                    
131		// If the user is null, but we decrypt a "recaller" cookie we can attempt to
                    
132		// pull the user data on that cookie which serves as a remember cookie on
                    
144	/**
                    
145	 * Get the decrypted recaller cookie for the request.
                    
146	 *
                    
338		// If the user should be permanently "remembered" by the application we will
                    
339		// queue a permanent cookie that contains the encrypted copy of the user
                    
340		// identifier. We will then decrypt this later to retrieve the users.
                    
                
config.php https://github.com/sevir/Creamy.git | PHP | 362 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
173|	0 = Disables logging, Error logging TURNED OFF
                    
174|	1 = Error Messages (including PHP errors)
                    
175|	2 = Debug Messages
                    
200|
                    
201| Each item that is logged has an associated date. You can use PHP date
                    
202| codes to set your own date formatting
                    
219|--------------------------------------------------------------------------
                    
220| Encryption Key
                    
221|--------------------------------------------------------------------------
                    
226*/
                    
227$config['encryption_key'] = 'change_this';
                    
228
                    
238|   when the browser window is closed
                    
239| 'sess_encrypt_cookie'		= Whether to encrypt the cookie
                    
240| 'sess_use_database'		= Whether to save the session data to a database
                    
                
config.php https://bitbucket.org/sergiotd/landing_page.git | PHP | 362 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
173|	0 = Disables logging, Error logging TURNED OFF
                    
174|	1 = Error Messages (including PHP errors)
                    
175|	2 = Debug Messages
                    
200|
                    
201| Each item that is logged has an associated date. You can use PHP date
                    
202| codes to set your own date formatting
                    
219|--------------------------------------------------------------------------
                    
220| Encryption Key
                    
221|--------------------------------------------------------------------------
                    
226*/
                    
227$config['encryption_key'] = 'template';
                    
228
                    
238|   when the browser window is closed
                    
239| 'sess_encrypt_cookie'		= Whether to encrypt the cookie
                    
240| 'sess_use_database'		= Whether to save the session data to a database
                    
                
config.php https://bitbucket.org/daholicofneki/ams.git | PHP | 362 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
173|	0 = Disables logging, Error logging TURNED OFF
                    
174|	1 = Error Messages (including PHP errors)
                    
175|	2 = Debug Messages
                    
200|
                    
201| Each item that is logged has an associated date. You can use PHP date
                    
202| codes to set your own date formatting
                    
219|--------------------------------------------------------------------------
                    
220| Encryption Key
                    
221|--------------------------------------------------------------------------
                    
226*/
                    
227$config['encryption_key'] = 'neki_ams';
                    
228
                    
238|   when the browser window is closed
                    
239| 'sess_encrypt_cookie'		= Whether to encrypt the cookie
                    
240| 'sess_use_database'		= Whether to save the session data to a database
                    
                
DbTable.php https://bitbucket.org/alexandretaz/maniac_divers.git | PHP | 445 lines
                    
1<?php
                    
2/**
                    
156     *
                    
157     * In many cases, passwords and other sensitive data are encrypted, hashed, encoded,
                    
158     * obscured, or otherwise treated through some function or algorithm. By specifying a
                    
                
config.php https://bitbucket.org/sokha/mpi_server.git | PHP | 362 lines
                    
149| invoke your controllers and its functions:
                    
150| example.com/index.php?c=controller&m=function
                    
151|
                    
173|	0 = Disables logging, Error logging TURNED OFF
                    
174|	1 = Error Messages (including PHP errors)
                    
175|	2 = Informational Messages
                    
223| If you use the Encryption class or the Session class you
                    
224| MUST set an encryption key.  See the user guide for info.
                    
225|
                    
226*/
                    
227$config['encryption_key'] = '';
                    
228
                    
238|   when the browser window is closed
                    
239| 'sess_encrypt_cookie'		= Whether to encrypt the cookie
                    
240| 'sess_use_database'		= Whether to save the session data to a database
                    
                
config.php https://github.com/yichaowang/yichao.git | PHP | 362 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
173|	0 = Disables logging, Error logging TURNED OFF
                    
174|	1 = Error Messages (including PHP errors)
                    
175|	2 = Debug Messages
                    
200|
                    
201| Each item that is logged has an associated date. You can use PHP date
                    
202| codes to set your own date formatting
                    
219|--------------------------------------------------------------------------
                    
220| Encryption Key
                    
221|--------------------------------------------------------------------------
                    
226*/
                    
227$config['encryption_key'] = 'yc';
                    
228
                    
238|   when the browser window is closed
                    
239| 'sess_encrypt_cookie'		= Whether to encrypt the cookie
                    
240| 'sess_use_database'		= Whether to save the session data to a database
                    
                
email.rst https://gitlab.com/atoz-chevara/CodeIgniter | ReStructuredText | 405 lines
                    
80instead put them into a config file. Simply create a new file called the
                    
81email.php, add the $config array in that file. Then save the file at
                    
82config/email.php and it will be used automatically. You will NOT need to
                    
103**smtp_keepalive**  FALSE                  TRUE or FALSE (boolean)      Enable persistent SMTP connections.
                    
104**smtp_crypto**     No Default             tls or ssl                   SMTP Encryption
                    
105**wordwrap**        TRUE                   TRUE or FALSE (boolean)      Enable word-wrap.
                    
197
                    
198	.. php:method:: cc($cc)
                    
199
                    
220
                    
221	.. php:method:: subject($subject)
                    
222
                    
230
                    
231	.. php:method:: message($body)
                    
232
                    
                
config.php https://bitbucket.org/jorgepereiras/initial.git | PHP | 363 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
174|	0 = Disables logging, Error logging TURNED OFF
                    
175|	1 = Error Messages (including PHP errors)
                    
176|	2 = Debug Messages
                    
201|
                    
202| Each item that is logged has an associated date. You can use PHP date
                    
203| codes to set your own date formatting
                    
220|--------------------------------------------------------------------------
                    
221| Encryption Key
                    
222|--------------------------------------------------------------------------
                    
227*/
                    
228$config['encryption_key'] = 'JP';
                    
229
                    
239|   when the browser window is closed
                    
240| 'sess_encrypt_cookie'		= Whether to encrypt the cookie
                    
241| 'sess_use_database'		= Whether to save the session data to a database
                    
                
Session.php https://github.com/bwghughes/houghandco.git | PHP | 632 lines
                    
1<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 4.3.2 or newer
                    
6 *
                    
30	var $now;
                    
31	var $encryption		= TRUE;
                    
32	var $use_database	= FALSE;
                    
120		// Do we need encryption?
                    
121		$this->encryption = $this->CI->config->item('sess_encrypt_cookie');
                    
122	
                    
122	
                    
123		if ($this->encryption == TRUE)	
                    
124		{
                    
124		{
                    
125			$this->CI->load->library('encrypt');
                    
126		}		
                    
                
cookie.rst https://gitlab.com/albertkeba/docs | ReStructuredText | 183 lines
                    
29|                 |              |                                                      |
                    
30|                 |              | When using rijndael or aes encryption, this value    |
                    
31|                 |              | must be longer than 32 bytes.                        |
                    
40|                 |              | the browser is closed. If a string is set, this will |
                    
41|                 |              | be interpreted with PHP function strtotime(). You can|
                    
42|                 |              | set this directly within the write() method.         |
                    
88
                    
89.. php:method:: write(mixed $key, mixed $value = null, boolean $encrypt = true, mixed $expires = null)
                    
90
                    
113    the encryption mode to 'aes' to ensure that values are securely
                    
114    encrypted::
                    
115
                    
119    until your cookie will expire. For convenience, this parameter can
                    
120    also be passed as a string that the php strtotime() function
                    
121    understands::
                    
                
SecurityTest.php https://bitbucket.org/LeThanhDat/firstdummyapp.git | PHP | 304 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
                    
245	public function testRijndael() {
                    
246		$this->skipIf(!function_exists('mcrypt_encrypt'));
                    
247		$txt = 'The quick brown fox jumped over the lazy dog.';
                    
250		$result = Security::rijndael($txt, $key, 'encrypt');
                    
251		$this->assertEquals($txt, Security::rijndael($result, $key, 'decrypt'));
                    
252
                    
269	public function testRijndaelBackwardCompatibility() {
                    
270		$this->skipIf(!function_exists('mcrypt_encrypt'));
                    
271
                    
                
config.php https://github.com/fukata/Study-GooglePlusAPI.git | PHP | 362 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
173|	0 = Disables logging, Error logging TURNED OFF
                    
174|	1 = Error Messages (including PHP errors)
                    
175|	2 = Debug Messages
                    
200|
                    
201| Each item that is logged has an associated date. You can use PHP date
                    
202| codes to set your own date formatting
                    
219|--------------------------------------------------------------------------
                    
220| Encryption Key
                    
221|--------------------------------------------------------------------------
                    
226*/
                    
227$config['encryption_key'] = '';
                    
228
                    
238|   when the browser window is closed
                    
239| 'sess_encrypt_cookie'		= Whether to encrypt the cookie
                    
240| 'sess_use_database'		= Whether to save the session data to a database
                    
                
StreamBuffer.php https://bitbucket.org/antonyravel/cape-resorts.git | PHP | 329 lines
                    
1<?php
                    
2
                    
101  {
                    
102    return stream_socket_enable_crypto($this->_stream, true, STREAM_CRYPTO_METHOD_TLS_CLIENT);
                    
103  }
                    
                
cookie.rst https://github.com/MontBlanc-Sucks/docs.git | ReStructuredText | 180 lines
                    
40|                 |              | the browser is closed. If a string is set, this will |
                    
41|                 |              | be interpreted with PHP function strtotime(). You can|
                    
42|                 |              | set this directly within the write() method.         |
                    
87
                    
88.. php:method:: write(mixed $key, mixed $value = null, boolean $encrypt = true, mixed $expires = null)
                    
89
                    
114    write() method to false. The encryption performed on cookie values
                    
115    is fairly uncomplicated encryption system. It uses
                    
116    ``Security.salt`` and a predefined Configure class var
                    
118    more secure you should change ``Security.cipherSeed`` in
                    
119    app/Config/core.php to ensure a better encryption.::
                    
120
                    
167
                    
168.. php:method:: type($type)
                    
169
                    
                
cookie.rst https://github.com/hiromi2424/docs.git | ReStructuredText | 183 lines
                    
29|                 |              |                                                      |
                    
30|                 |              | When using rijndael or aes encryption, this value    |
                    
31|                 |              | must be longer than 32 bytes.                        |
                    
40|                 |              | the browser is closed. If a string is set, this will |
                    
41|                 |              | be interpreted with PHP function strtotime(). You can|
                    
42|                 |              | set this directly within the write() method.         |
                    
88
                    
89.. php:method:: write(mixed $key, mixed $value = null, boolean $encrypt = true, mixed $expires = null)
                    
90
                    
113    the encryption mode to 'aes' to ensure that values are securely
                    
114    encrypted::
                    
115
                    
119    until your cookie will expire. For convenience, this parameter can
                    
120    also be passed as a string that the PHP strtotime() function
                    
121    understands::
                    
                
config.php https://gitlab.com/zulkufadsiz/kosanlar.com | PHP | 362 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
173|	0 = Disables logging, Error logging TURNED OFF
                    
174|	1 = Error Messages (including PHP errors)
                    
175|	2 = Debug Messages
                    
200|
                    
201| Each item that is logged has an associated date. You can use PHP date
                    
202| codes to set your own date formatting
                    
219|--------------------------------------------------------------------------
                    
220| Encryption Key
                    
221|--------------------------------------------------------------------------
                    
226*/
                    
227$config['encryption_key'] = 'krafik';
                    
228
                    
238|   when the browser window is closed
                    
239| 'sess_encrypt_cookie'		= Whether to encrypt the cookie
                    
240| 'sess_use_database'		= Whether to save the session data to a database
                    
                
uc.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 301 lines
                    
1<?php
                    
2define('UC_VERSION', '1.0.0');        //UCenter ????
                    
19ob_start();
                    
20define('PHP_SELF',dirname($_SERVER['PHP_SELF'] ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME']));
                    
21if(include(dirname(__FILE__).'/../config/config.php')){
                    
22    ob_end_clean();
                    
23    require(CORE_DIR.'/kernel.php');
                    
24    require(CORE_DIR.'/include/shopCore.php');
                    
25    require_once(CORE_DIR.'/func_ext.php');
                    
26    require(CORE_DIR.'/lib/uc_client/lib/xml.class.php');
                    
27    class ucCore extends shopCore{
                    
37
                    
38            $cryptkey = $keya.md5($keya.$keyc);
                    
39            $key_length = strlen($cryptkey);
                    
48            for($i = 0; $i <= 255; $i++) {
                    
49                $rndkey[$i] = ord($cryptkey[$i % $key_length]);
                    
50            }
                    
                
app.php https://gitlab.com/fabiorf/edigital | PHP | 194 lines
                    
1<?php
                    
2
                    
36	| Here you may specify the default timezone for your application, which
                    
37	| will be used by the PHP date and date-time functions. We have gone
                    
38	| ahead and set this to a sensible default for you out of the box.
                    
71	|--------------------------------------------------------------------------
                    
72	| Encryption Key
                    
73	|--------------------------------------------------------------------------
                    
74	|
                    
75	| This key is used by the Illuminate encrypter service and should be set
                    
76	| to a random, 32 character string, otherwise these encrypted strings
                    
105		'Illuminate\Database\DatabaseServiceProvider',
                    
106		'Illuminate\Encryption\EncryptionServiceProvider',
                    
107		'Illuminate\Filesystem\FilesystemServiceProvider',
                    
161		'Cookie'            => 'Illuminate\Support\Facades\Cookie',
                    
162		'Crypt'             => 'Illuminate\Support\Facades\Crypt',
                    
163		'DB'                => 'Illuminate\Support\Facades\DB',
                    
                
Blowfish.php https://github.com/grandison/budo16.git | PHP | 317 lines
                    
4/**
                    
5 * Crypt_Blowfish allows for encryption and decryption on the fly using
                    
6 * the Blowfish algorithm. Crypt_Blowfish does not require the MCrypt
                    
7 * PHP extension, but uses it if available, otherwise it uses only PHP.
                    
8 * Crypt_Blowfish supports encryption/decryption with or without a secret key.
                    
9 *
                    
69 *
                    
70 * To disable using the mcrypt library, define the CRYPT_BLOWFISH_NOMCRYPT
                    
71 * constant. This is useful for instance on Windows platform with a buggy
                    
157     * @param string $iv initialization vector (must be provided for CBC mode)
                    
158     * @param integer $engine one of CRYPT_BLOWFISH_AUTO, CRYPT_BLOWFISH_PHP
                    
159     *                or CRYPT_BLOWFISH_MCRYPT
                    
192                include_once 'Crypt/Blowfish/MCrypt.php';
                    
193                $crypt = new Crypt_Blowfish_MCrypt(null, $mode);
                    
194                break;
                    
                
config.php https://gitlab.com/stevie007/frontiertrading | PHP | 363 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
174|	0 = Disables logging, Error logging TURNED OFF
                    
175|	1 = Error Messages (including PHP errors)
                    
176|	2 = Debug Messages
                    
201|
                    
202| Each item that is logged has an associated date. You can use PHP date
                    
203| codes to set your own date formatting
                    
220|--------------------------------------------------------------------------
                    
221| Encryption Key
                    
222|--------------------------------------------------------------------------
                    
227*/
                    
228$config['encryption_key'] = 'let us hide';
                    
229
                    
239|   when the browser window is closed
                    
240| 'sess_encrypt_cookie'		= Whether to encrypt the cookie
                    
241| 'sess_use_database'		= Whether to save the session data to a database
                    
                
RmFrksNt.java https://bitbucket.org/jorgenio/jdownloader.git | Java | 147 lines
                    
33import jd.plugins.PluginException;
                    
34import jd.plugins.PluginForDecrypt;
                    
35
                    
43    @Override
                    
44    public ArrayList<DownloadLink> decryptIt(CryptedLink param, ProgressController progress) throws Exception {
                    
45        ArrayList<DownloadLink> decryptedLinks = new ArrayList<DownloadLink>();
                    
67                }
                    
68                decryptedLinks.add(createDownloadlink(finallink));
                    
69            } else {
                    
76                if (br.containsHTML("/captcha/go")) {
                    
77                    captchaurl = "http://www.rom-freaks.net/captcha/go.php";
                    
78                }
                    
111                }
                    
112                if (downlink == null && br.containsHTML("/captcha/go")) throw new DecrypterException(DecrypterException.CAPTCHA);
                    
113                if (downlink == null) return null;
                    
                
CacheManager.php https://gitlab.com/dzakiafif/cokelatklasik | PHP | 311 lines
                    
1<?php
                    
2
                    
218            new DatabaseStore(
                    
219                $connection, $this->app['encrypter'], $config['table'], $this->getPrefix($config)
                    
220            )
                    
                
config.php http://records-authority.googlecode.com/svn/ | PHP | 371 lines
                    
179|	0 = Disables logging, Error logging TURNED OFF
                    
180|	1 = Error Messages (including PHP errors)
                    
181|	2 = Debug Messages
                    
206|
                    
207| Each item that is logged has an associated date. You can use PHP date
                    
208| codes to set your own date formatting
                    
228|
                    
229| If you use the Encryption class or the Sessions class with encryption
                    
230| enabled you MUST set an encryption key.  See the user guide for info.
                    
232*/
                    
233$config['encryption_key'] = "R3c0rdM@n@g3m3ntL1@50n";
                    
234
                    
240| 'session_cookie_name' = the name you want for the cookie
                    
241| 'encrypt_sess_cookie' = TRUE/FALSE (boolean).  Whether to encrypt the cookie
                    
242| 'session_expiration'  = the number of SECONDS you want the session to last.
                    
                
Backup.php https://gitlab.com/yousafsyed/easternglamor | PHP | 436 lines
                    
1<?php
                    
2/**
                    
16 * @method string getTime()
                    
17 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
                    
18 */
                    
64    /**
                    
65     * @var \Magento\Framework\Encryption\EncryptorInterface
                    
66     */
                    
77     * @param \Magento\Backend\Model\Auth\Session $authSession
                    
78     * @param \Magento\Framework\Encryption\EncryptorInterface $encryptor
                    
79     * @param \Magento\Framework\Filesystem $filesystem
                    
85        \Magento\Backend\Model\Auth\Session $authSession,
                    
86        \Magento\Framework\Encryption\EncryptorInterface $encryptor,
                    
87        \Magento\Framework\Filesystem $filesystem,
                    
89    ) {
                    
90        $this->_encryptor = $encryptor;
                    
91        parent::__construct($data);
                    
                
AbstractService.php https://github.com/Exercise/zf2.git | PHP | 266 lines
                    
1<?php
                    
2/**
                    
26 * @uses       DOMXPath
                    
27 * @uses       Zend_Crypt_Hmac
                    
28 * @uses       Zend_Http_Client
                    
237
                    
238        $hmac = Zend_Crypt_Hmac::compute($this->_getSecretKey(), 'SHA256', $data, Zend_Crypt_Hmac::BINARY);
                    
239
                    
                
constants.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 239 lines
                    
1<?php
                    
2
                    
14//Ten file config
                    
15define( "NV_CONFIG_FILENAME", "config.php" );
                    
16
                    
87//Phuong phap ma hoa mat khau: 0 = md5, 1 = sha1
                    
88define( 'NV_CRYPT_SHA1', 1 );
                    
89
                    
185                    empty string)
                    
186E_STRICT			- run-time notices, enable to have PHP suggest changes
                    
187                    to your code which will ensure the best interoperability
                    
188                    and forward compatibility of your code
                    
189E_CORE_ERROR      - fatal errors that occur during PHP's initial startup
                    
190E_CORE_WARNING    - warnings (non-fatal errors) that occur during PHP's
                    
227$global_config['check_op'] = "/^[a-zA-Z0-9\-]+$/";
                    
228$global_config['check_op_file'] = "/^([a-zA-Z0-9\-\_]+)\.php$/";
                    
229$global_config['check_block_global'] = "/^global\.([a-zA-Z0-9\-\_]+)\.php$/";
                    
                
SecureStreamClientBase.cs https://openHistorian.svn.codeplex.com/svn | C# | 267 lines
                    
10//
                    
11//      http://www.opensource.org/licenses/eclipse-1.0.php
                    
12//
                    
28using System.Security.Authentication;
                    
29using System.Security.Cryptography.X509Certificates;
                    
30using GSF.Diagnostics;
                    
33using GSF.Security.Authentication;
                    
34using Org.BouncyCastle.Crypto;
                    
35#endif
                    
62        {
                    
63            ssl = new SslStream(stream, false, UserCertificateValidationCallback, UserCertificateSelectionCallback, EncryptionPolicy.RequireEncryption);
                    
64            try
                    
                
mysql4-upgrade-1.5.9.9-1.6.0.0.php https://bitbucket.org/acidel/buykoala.git | PHP | 306 lines
                    
1<?php

                    
2/**

                    
9 * It is also available through the world-wide-web at this URL:

                    
10 * http://opensource.org/licenses/osl-3.0.php

                    
11 * If you did not receive a copy of the license and are unable to

                    
23 * @copyright   Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)

                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)

                    
25 */

                    
124                'length'    => 32,

                    
125                'comment'   => 'Sharing encrypted code'

                    
126            ),

                    
                
newlisp.php https://github.com/Bigjoos/U-232-V3.git | PHP | 191 lines
                    
1<?php
                    
2/*************************************************************************************
                    
2/*************************************************************************************
                    
3 * newlisp.php
                    
4 * ----------
                    
64            'div','do-until','do-while','doargs','dolist','dostring','dotimes',
                    
65            'dotree','dump','dup','empty?','encrypt','ends-with','env','erf',
                    
66            'error-event','estack','eval','eval-string','exec','exists','exit',
                    
                
authentication.md https://bitbucket.org/zbahij/eprojets_app.git | Markdown | 179 lines
                    
19```php
                    
20// in your module.config.php:
                    
21
                    
45* the `object_repository` can be used instead of the `object_manager` key. Most of the time you won't deal with the one, as specifying the `identity_class` name will automatically fetch the `object_repository` for you.
                    
46* the `credential_callable` is a very useful option that allow you to perform some custom logic when checking if the credential is correct. For instance, if your password are encrypted using Bcrypt algorithm, you will need to perform specific logic. This option can be any callable function (closure, class method…). This function will be given the complete entity fetched from the database, and the credential that was given by the user during the authentication process.
                    
47
                    
49
                    
50```php
                    
51// in your module.config.php:
                    
71
                    
72Now that we have configured the authentication, we need still need to tell Zend Framework how to construct a correct ``Zend\Authentication\AuthenticationService`` instance. For this, add the following code in your Module.php class:
                    
73
                    
73
                    
74```php
                    
75namespace Application;
                    
                
Asset.php https://gitlab.com/vietdhtn/myweb | PHP | 372 lines
                    
18 * @package   WindowsAzure\MediaServices\Models
                    
19 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
20 * @copyright Microsoft Corporation
                    
34 * @package   WindowsAzure\MediaServices\Models
                    
35 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
36 * @copyright Microsoft Corporation
                    
71    /**
                    
72     * The encryption options "storage encrypted"
                    
73     *
                    
78    /**
                    
79     * The encryption options "common encryption protected"
                    
80     *
                    
85    /**
                    
86     * The encryption options "envelope encryption protected"
                    
87     *
                    
                
index.php https://github.com/sergey-gagarin/test02.git | PHP | 87 lines
                    
1<?php
                    
2echo '<'.'?'.'xml version="1.0" encoding="UTF-8"'.'?'.'>';
                    
11<meta name="aiocp_level" content="0" />
                    
12<meta name="description" content="TCPDF is a PHP class for generating PDF documents on the fly" />
                    
13<meta name="author" content="Nicola Asuni" />
                    
13<meta name="author" content="Nicola Asuni" />
                    
14<meta name="keywords" content="Examples, TCPDF, PDF, PHP class" />
                    
15</head>
                    
21<ol>
                    
22<li>Simple PDF with default Header and Footer: [<a href="example_001.php" title="PDF [new window]" target="_blank">PDF</a>]</li>
                    
23<li>Simple PDF without Header and Footer: [<a href="example_002.php" title="PDF [new window]" target="_blank">PDF</a>]</li>
                    
23<li>Simple PDF without Header and Footer: [<a href="example_002.php" title="PDF [new window]" target="_blank">PDF</a>]</li>
                    
24<li>Custom Header and Footer: [<a href="example_003.php" title="PDF [new window]" target="_blank">PDF</a>]</li>
                    
25<li>Cell stretching: [<a href="example_004.php" title="PDF [new window]" target="_blank">PDF</a>]</li>
                    
36<li>Bookmarks (Table of Content): [<a href="example_015.php" title="PDF [new window]" target="_blank">PDF</a>]</li>
                    
37<li>Document Encryption: [<a href="example_016.php" title="PDF [new window]" target="_blank">PDF</a>]</li>
                    
38<li>Independent columns with MultiCell: [<a href="example_017.php" title="PDF [new window]" target="_blank">PDF</a>]</li>
                    
                
cipherer.php https://gitlab.com/Lidbary/PHPRunner | PHP | 297 lines
                    
66		{
                    
67			if( !$this->pSet->hasEncryptedFields() || !isEncryptionByPHPEnabled() )
                    
68				return $fetchedArray;
                    
172	{
                    
173		if(isEncryptionByPHPEnabled() || !$this->isFieldEncrypted($alias != null ? $alias : $field))
                    
174			return $field;
                    
220	{
                    
221		if( !$this->isFieldEncrypted($field) || isEncryptionByPHPEnabled() )
                    
222			return $value;
                    
256	{		
                    
257		if( $this->isFieldEncrypted($field) && isEncryptionByPHPEnabled() )
                    
258		{
                    
277	{
                    
278		if($this->isFieldEncrypted($field) && isEncryptionByPHPEnabled())
                    
279		{
                    
                
CustomerController.php https://gitlab.com/yamenpun/repair-tracking-system | PHP | 233 lines
                    
1<?php
                    
2
                    
122            'email'         => $request->get('email'),
                    
123            'password'      => bcrypt($request->get('password')),
                    
124            'office_name'   => $request->get('office_name'),
                    
178                'email'         => $request->get('email'),
                    
179                'password'      => bcrypt($request->get('password')),
                    
180                'office_name'   => $request->get('office_name'),
                    
                
upload.php http://rapidleech.googlecode.com/svn/trunk/ | PHP | 264 lines
                    
14require_once(CONFIG_DIR.'setup.php');
                    
15require_once("classes/other.php");
                    
16define ( 'TEMPLATE_DIR', 'templates/'.$options['template_used'].'/' );
                    
20
                    
21include("classes/http.php");
                    
22
                    
35		if (is_file ( HOST_DIR . "upload/" . $modules )) {
                    
36			if (strpos ( $modules, ".index.php" ))
                    
37				include_once (HOST_DIR . "upload/" . $modules);
                    
47?>
                    
48<?php
                    
49if (!file_exists($_REQUEST['filename']))
                    
247if (isset($_GET['auul'])) {
                    
248?><script type="text/javascript">parent.nextlink<?php echo $_GET['auul']; ?>();</script><?php
                    
249	// Write links to a file
                    
                
ext_stream.h https://gitlab.com/iranjith4/hhvm | C Header | 290 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
5   | Copyright (c) 2010-2016 Facebook, Inc. (http://www.facebook.com)     |
                    
6   | Copyright (c) 1997-2010 The PHP Group                                |
                    
7   +----------------------------------------------------------------------+
                    
7   +----------------------------------------------------------------------+
                    
8   | This source file is subject to version 3.01 of the PHP license,      |
                    
9   | that is bundled with this package in the file LICENSE, and is        |
                    
10   | available through the world-wide-web at the following url:           |
                    
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          |
                    
14   | license@php.net so we can mail you a copy immediately.               |
                    
15   +----------------------------------------------------------------------+
                    
                
resource.php https://github.com/henriquecrang/e-UNI.git | PHP | 139 lines
                    
1<?PHP // $Id$ 
                    
2      // resource.php - created with Moodle 1.9.5+ (Build: 20091007) (2007101553)
                    
42$string['emptyfolder'] = 'Pasta vazia';
                    
43$string['encryptedcode'] = 'Código cifrado';
                    
44$string['example'] = 'Exemplo';
                    
                
User.php https://github.com/kaiquewdev/ppi-framework.git | PHP | 332 lines
                    
24		parent::__construct($p_iTableName, $p_iTableIndex, $p_sBdbInfo, $p_iUserID);
                    
25		// encryption algorithm override
                    
26		if(isset($oConfig->system->encryptionAlgorithm)) {
                    
26		if(isset($oConfig->system->encryptionAlgorithm)) {
                    
27			$this->_encryptionAlgorithm = $oConfig->system->encryptionAlgorith;
                    
28		}
                    
67			if(isset($aData['password'], $aData['salt'])) {
                    
68				$aData['password'] 	= $this->encryptPassword($aData['salt'], $aData['password']);
                    
69				unset($aData[$oConfig->system->usernameField]);
                    
134		if(!empty($user)) {
                    
135			if($this->encryptPassword($oConfig->system->userAuthSalt, $password) === $user['password']) {
                    
136				if(array_key_exists('password', $user)) {
                    
263	function getAlgorithm() {
                    
264		return $this->_encryptionAlgorithm;
                    
265	}
                    
                
Client.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 336 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Client.php 25167 2012-12-19 16:28:01Z matthew $
                    
20 */
                    
22/** Zend_Oauth */
                    
23require_once 'Zend/Oauth.php';
                    
24
                    
25/** Zend_Http_Client */
                    
26require_once 'Zend/Http/Client.php';
                    
27
                    
28/** Zend_Oauth_Http_Utility */
                    
29require_once 'Zend/Oauth/Http/Utility.php';
                    
30
                    
31/** Zend_Oauth_Config */
                    
32require_once 'Zend/Oauth/Config.php';
                    
33
                    
                
FilterIntervalSlider.php https://gitlab.com/Lidbary/PHPRunner | PHP | 400 lines
                    
1<?php
                    
2class FilterIntervalSlider extends FilterControl
                    
110		$data = $this->connection->query( $this->strSQL )->fetchAssoc(); 
                    
111		$this->decryptDataRow($data);
                    
112		
                    
                
OctoberInstall.php https://gitlab.com/gideonmarked/atls-express | PHP | 362 lines
                    
1<?php namespace System\Console;
                    
2
                    
16use Illuminate\Console\Command;
                    
17use Illuminate\Encryption\Encrypter;
                    
18use Symfony\Component\Console\Input\InputOption;
                    
68        if ($this->confirm('Configure advanced options?', false)) {
                    
69            $this->setupEncryptionKey();
                    
70            $this->setupAdvancedValues();
                    
72        else {
                    
73            $this->setupEncryptionKey(true);
                    
74        }
                    
123    //
                    
124    // Encryption key
                    
125    //
                    
126
                    
127    protected function setupEncryptionKey($force = false)
                    
128    {
                    
                
DkimSigner.php https://github.com/FabienD/symfony.git | PHP | 217 lines
                    
1<?php
                    
2
                    
11
                    
12namespace Symfony\Component\Mime\Crypto;
                    
13
                    
44        if (!\extension_loaded('openssl')) {
                    
45            throw new \LogicException('PHP extension "openssl" is required to use DKIM.');
                    
46        }
                    
52            'signature_expiration_delay' => 0,
                    
53            'body_max_length' => \PHP_INT_MAX,
                    
54            'body_show_length' => false,
                    
                
setup-debian8.sh https://gitlab.com/yelworc/eleven-vagrant | Shell | 271 lines
                    
44    python3-pip python3-pkg-resources python3-setuptools dos2unix nodejs \
                    
45    nodejs-legacy rethinkdb=2.3.5~0jessie nginx php5-fpm php5-cli php5-mcrypt \
                    
46    mysql-server php5-mysql libsqlite3-dev ruby ruby-dev unzip rabbitmq-server \
                    
162
                    
163# copy configuration files for nginx and PHP, and the local environment settings for the webapp
                    
164cp /vagrant/eleven-vagrant/nginx-webapp /etc/nginx/sites-available/webapp
                    
165ln -s /etc/nginx/sites-available/webapp /etc/nginx/sites-enabled
                    
166cp /vagrant/eleven-vagrant/php.ini /etc/php5/fpm/php.ini
                    
167[ ! -f /vagrant/eleven-web/.env ] && cp /vagrant/eleven-web/.env.example /vagrant/eleven-web/.env
                    
175
                    
176# restart nginx and php5-fpm
                    
177rm /etc/nginx/sites-enabled/default
                    
233# Copy config
                    
234cp /vagrant/eleven-vagrant/vanilla-config.php /var/www/forum/conf/config.php
                    
235
                    
                
Compiling.md https://gitlab.com/SystemX-Solutions/Droid-X-Serv | Markdown | 384 lines
                    
147```
                    
148cd $PROJECT_BASE/build && tar -xjvf $REPOSITORY/libmcrypt-2.5.8.tar.bz2 && cd ./libmcrypt-2.5.8
                    
149ac_cv_type_unsigned_long_int=no ac_cv_sizeof_unsigned_int=no \
                    
279
                    
280## Compiling PHP
                    
281
                    
282```
                    
283cd $REPOSITORY && wget http://www.php.net/get/php-5.5.9.tar.bz2/from/a/mirror
                    
284cd $PROJECT_BASE/build && tar -xjvf $REPOSITORY/php-5.5.9.tar.bz2 && cd ./php-5.5.9
                    
351```
                    
352cd $REPOSITORY && wget http://www.php.net/get/php-5.5.9.tar.bz2/from/a/mirror
                    
353cd $PROJECT_BASE/build && tar -xjvf $REPOSITORY/msmtp-1.4.31.tar.bz2 &&cd ./msmtp-1.4.31
                    
379Please fork this repository and contribute back using
                    
380[pull requests](https://github.com/droidphp/droidphp/pulls).
                    
381
                    
                
OpenSSL_PKCS11.h https://bitbucket.org/pmfsampaio/netmf-lpc.git | C Header | 246 lines
                    
110{

                    
111    static CK_RV EncryptInit     (Cryptoki_Session_Context* pSessionCtx, CK_MECHANISM_PTR pEncryptMech, CK_OBJECT_HANDLE hKey);
                    
112    static CK_RV Encrypt           (Cryptoki_Session_Context* pSessionCtx, CK_BYTE_PTR pData, CK_ULONG ulDataLen, CK_BYTE_PTR pEncryptedData, CK_ULONG_PTR pulEncryptedDataLen);
                    
112    static CK_RV Encrypt           (Cryptoki_Session_Context* pSessionCtx, CK_BYTE_PTR pData, CK_ULONG ulDataLen, CK_BYTE_PTR pEncryptedData, CK_ULONG_PTR pulEncryptedDataLen);
                    
113    static CK_RV EncryptUpdate(Cryptoki_Session_Context* pSessionCtx, CK_BYTE_PTR pPart, CK_ULONG ulPartLen, CK_BYTE_PTR pEncryptedPart, CK_ULONG_PTR pulEncryptedPartLen);
                    
114    static CK_RV EncryptFinal    (Cryptoki_Session_Context* pSessionCtx, CK_BYTE_PTR pLastEncryptedPart, CK_ULONG_PTR pulLastEncryptedPartLen);
                    
116    static CK_RV DecryptInit     (Cryptoki_Session_Context* pSessionCtx, CK_MECHANISM_PTR pEncryptMech, CK_OBJECT_HANDLE hKey);
                    
117    static CK_RV Decrypt     (Cryptoki_Session_Context* pSessionCtx, CK_BYTE_PTR pEncryptedData, CK_ULONG ulEncryptedDataLen, CK_BYTE_PTR pData, CK_ULONG_PTR pulDataLen);
                    
118    static CK_RV DecryptUpdate(Cryptoki_Session_Context* pSessionCtx, CK_BYTE_PTR pEncryptedPart, CK_ULONG ulEncryptedPartLen, CK_BYTE_PTR pPart, CK_ULONG_PTR pulPartLen);
                    
121private:
                    
122    static CK_RV InitHelper(Cryptoki_Session_Context* pSessionCtx, CK_MECHANISM_PTR pEncryptMech, CK_OBJECT_HANDLE hKey, BOOL isEncrypt);
                    
123};
                    
219                             CK_ATTRIBUTE_PTR pPrivateKeyTemplate, CK_ULONG ulPrivateCount, 
                    
220                             CK_OBJECT_HANDLE_PTR phPublicKey    , CK_OBJECT_HANDLE_PTR phPrivateKey);
                    
221    static CK_RV WrapKey  (Cryptoki_Session_Context* pSessionCtx, CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE hWrappingKey, CK_OBJECT_HANDLE hKey, CK_BYTE_PTR pWrappedKey, CK_ULONG_PTR pulWrappedKeyLen);
                    
                
encryptalltest.php https://gitlab.com/wuhang2003/core | PHP | 335 lines
                    
128		/** @var EncryptAll  | \PHPUnit_Framework_MockObject_MockObject  $encryptAll */
                    
129		$encryptAll = $this->getMockBuilder('OCA\Encryption\Crypto\EncryptAll')
                    
130			->setConstructorArgs(
                    
157		/** @var EncryptAll  | \PHPUnit_Framework_MockObject_MockObject  $encryptAll */
                    
158		$encryptAll = $this->getMockBuilder('OCA\Encryption\Crypto\EncryptAll')
                    
159			->setConstructorArgs(
                    
187		/** @var EncryptAll  | \PHPUnit_Framework_MockObject_MockObject  $encryptAll */
                    
188		$encryptAll = $this->getMockBuilder('OCA\Encryption\Crypto\EncryptAll')
                    
189			->setConstructorArgs(
                    
236		/** @var EncryptAll  | \PHPUnit_Framework_MockObject_MockObject  $encryptAll */
                    
237		$encryptAll = $this->getMockBuilder('OCA\Encryption\Crypto\EncryptAll')
                    
238			->setConstructorArgs(
                    
269		/** @var EncryptAll  | \PHPUnit_Framework_MockObject_MockObject  $encryptAll */
                    
270		$encryptAll = $this->getMockBuilder('OCA\Encryption\Crypto\EncryptAll')
                    
271			->setConstructorArgs(
                    
                
reset.php https://github.com/sengann/iks-school.com.git | PHP | 393 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version		$Id: reset.php 18675 2010-08-27 04:53:20Z eddieajau $
                    
4 * @package		Joomla.Site
                    
168		$salt		= JUserHelper::genRandomPassword(32);
                    
169		$crypted	= JUserHelper::getCryptedPassword($data['password1'], $salt);
                    
170		$password	= $crypted.':'.$salt;
                    
246		$parts	= explode( ':', $user->activation );
                    
247		$crypt	= $parts[0];
                    
248		if (!isset($parts[1])) {
                    
252		$salt	= $parts[1];
                    
253		$testcrypt = JUserHelper::getCryptedPassword($data['token'], $salt);
                    
254
                    
255		// Verify the token
                    
256		if (!($crypt == $testcrypt))
                    
257		{
                    
                
Preference.php https://gitlab.com/rsilveira1987/Expresso | PHP | 306 lines
                    
1<?php
                    
2/**
                    
74     */
                    
75    const ENABLE_ENCRYPTED_MESSAGE = 'enableEncryptedMessage';
                    
76
                    
122            self::ALWAYS_SIGN_MESSAGE,
                    
123            self::ENABLE_ENCRYPTED_MESSAGE,
                    
124        );
                    
174            ),
                    
175            self::ENABLE_ENCRYPTED_MESSAGE  => array(
                    
176                'label'         => $translate->_('Enable sending encrypted messages'),
                    
176                'label'         => $translate->_('Enable sending encrypted messages'),
                    
177                'description'   => $translate->_('Choose yes, to enable sending encrypted messages (only if preference "Windows Type" is set to "Browser windows").'),
                    
178            ),
                    
268                break;
                    
269           case self::ENABLE_ENCRYPTED_MESSAGE:
                    
270                $preference->value      = 1;
                    
                
AdminPreferencesController.php https://gitlab.com/goolic/PrestaShop | PHP | 246 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
22 * @copyright 2007-2015 PrestaShop SA
                    
23 * @license   http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
                    
24 * International Registered Trademark & Property of PrestaShop SA
                    
97                    'title' => $this->l('Enable SSL'),
                    
98                    'desc' => $this->l('If you own an SSL certificate for your shop\'s domain name, you can activate SSL encryption (https://) for customer account identification and order processing.'),
                    
99                    'hint' => $this->l('If you want to enable SSL on all the pages of your shop, activate the "Enable on all the pages" option below.'),
                    
                
ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersions.php https://gitlab.com/efabian/maya | PHP | 222 lines
                    
28  /**
                    
29   * Decrypts data that was encrypted with a public key retrieved from
                    
30   * GetPublicKey corresponding to a CryptoKeyVersion with CryptoKey.purpose
                    
30   * GetPublicKey corresponding to a CryptoKeyVersion with CryptoKey.purpose
                    
31   * ASYMMETRIC_DECRYPT. (cryptoKeyVersions.asymmetricDecrypt)
                    
32   *
                    
152   * Lists CryptoKeyVersions.
                    
153   * (cryptoKeyVersions.listProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersions)
                    
154   *
                    
169   * @opt_param int pageSize Optional. Optional limit on the number of
                    
170   * CryptoKeyVersions to include in the response. Further CryptoKeyVersions can
                    
171   * subsequently be obtained by including the
                    
175   */
                    
176  public function listProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersions($parent, $optParams = array())
                    
177  {
                    
                
HmacTest.php https://github.com/bate/zf2.git | PHP | 222 lines
                    
1<?php
                    
2/**
                    
7 * @license   http://framework.zend.com/license/new-bsd New BSD License
                    
8 * @package   Zend_Crypt
                    
9 */
                    
10
                    
11namespace ZendTest\Crypt;
                    
12
                    
12
                    
13use Zend\Crypt\Hmac as HMAC;
                    
14
                    
21 * @category   Zend
                    
22 * @package    Zend_Crypt
                    
23 * @subpackage UnitTests
                    
23 * @subpackage UnitTests
                    
24 * @group      Zend_Crypt
                    
25 */
                    
                
Str.php https://gitlab.com/zan_zan/laravel_sample | PHP | 436 lines
                    
1<?php
                    
2
                    
247    {
                    
248        if (PHP_MAJOR_VERSION >= 7) {
                    
249            $bytes = random_bytes($length);
                    
256        } else {
                    
257            throw new RuntimeException('OpenSSL extension is required for PHP 5 users.');
                    
258        }
                    
265     *
                    
266     * Should not be considered sufficient for cryptography, etc.
                    
267     *
                    
                
compile.sh git://pkgs.fedoraproject.org/testdisk | Shell | 323 lines
                    
168          powerpc-apple-darwin|i686-apple-darwin9)
                    
169	  	CC=$TESTDISKCC ./configure --host=$crosscompile_target --prefix=$prefix --disable-default-device-io-ops --disable-crypto --disable-nfconv
                    
170		;;
                    
171	*)
                    
172		CC=$TESTDISKCC ./configure --host=$crosscompile_target --prefix=$prefix --disable-default-device-io-ops --disable-crypto
                    
173		;;
                    
213# --disable-default-device-io-ops is need for NT 4
                    
214        ./configure --host=$crosscompile_target --prefix=$prefix --disable-default-device-io-ops --disable-crypto
                    
215        cd $pwd_saved
                    
237    then
                    
238  	$LYNX "http://sourceforge.net/project/platformdownload.php?group_id=167783"
                    
239  fi
                    
                
ring_signature_1.cpp https://gitlab.com/nexxuz/cryptonote | C++ | 318 lines
                    
1// Copyright (c) 2011-2014 The Cryptonote developers
                    
2// Distributed under the MIT/X11 software license, see the accompanying
                    
2// Distributed under the MIT/X11 software license, see the accompanying
                    
3// file COPYING or http://www.opensource.org/licenses/mit-license.php.
                    
4
                    
8using namespace epee;
                    
9using namespace cryptonote;
                    
10
                    
70
                    
71bool gen_ring_signature_1::check_balances_1(cryptonote::core& c, size_t ev_index, const std::vector<test_event_entry>& events)
                    
72{
                    
78  std::list<block> blocks;
                    
79  bool r = c.get_blocks(0, 100 + 2 * CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW, blocks);
                    
80  CHECK_TEST_CONDITION(r);
                    
81
                    
82  std::vector<cryptonote::block> chain;
                    
83  map_hash2tx_t mtx;
                    
                
Sqs.php https://bitbucket.org/openfisma-ondemand/openfisma.git | PHP | 465 lines
                    
28/**
                    
29 * @see Zend_Crypt_Hmac
                    
30 */
                    
30 */
                    
31// require_once 'Zend/Crypt/Hmac.php';
                    
32
                    
118                } else {
                    
119                    // require_once 'Zend/Service/Amazon/Sqs/Exception.php';
                    
120                    throw new Zend_Service_Amazon_Sqs_Exception($result->Error->Code);
                    
162        if (isset($result->Error)) {
                    
163            // require_once 'Zend/Service/Amazon/Sqs/Exception.php';
                    
164            throw new Zend_Service_Amazon_Sqs_Exception($result->Error->Code);
                    
460
                    
461        $hmac = Zend_Crypt_Hmac::compute($this->_getSecretKey(), 'SHA256', $data, Zend_Crypt_Hmac::BINARY);
                    
462
                    
                
cc.php https://github.com/digineo/xt-commerce.git | PHP | 100 lines
                    
1<?php
                    
2/*------------------------------------------------------------------------------
                    
2/*------------------------------------------------------------------------------
                    
3  $Id: cc.php 192 2007-02-24 16:24:52Z mzanier $
                    
4
                    
10  based on:
                    
11  $Id: cc.php 192 2007-02-24 16:24:52Z mzanier $
                    
12
                    
46define('CC_BLACK_DESC', 'Do you want to enable CC blacklist check?');
                    
47define('CC_ENC_TITLE', 'Encrypt CC Info');
                    
48define('CC_ENC_DESC', 'Do you want to encypt cc info?');
                    
                
walletview.cpp https://gitlab.com/jslee1/bitcoin | C++ | 318 lines
                    
2// Distributed under the MIT software license, see the accompanying
                    
3// file COPYING or http://www.opensource.org/licenses/mit-license.php.
                    
4
                    
96        // Pass through encryption status changed signals
                    
97        connect(this, SIGNAL(encryptionStatusChanged(int)), gui, SLOT(setEncryptionStatus(int)));
                    
98
                    
129        // Handle changes in encryption status
                    
130        connect(walletModel, SIGNAL(encryptionStatusChanged(int)), this, SIGNAL(encryptionStatusChanged(int)));
                    
131        updateEncryptionStatus();
                    
223{
                    
224    Q_EMIT encryptionStatusChanged(walletModel->getEncryptionStatus());
                    
225}
                    
230        return;
                    
231    AskPassphraseDialog dlg(status ? AskPassphraseDialog::Encrypt : AskPassphraseDialog::Decrypt, this);
                    
232    dlg.setModel(walletModel);
                    
                
encryption.php https://gitlab.com/Red54/core | PHP | 368 lines
                    
25	/**
                    
26	 * @var \OC\Encryption\Util | \PHPUnit_Framework_MockObject_MockObject
                    
27	 */
                    
35	/**
                    
36	 * @var \OCP\Encryption\IEncryptionModule | \PHPUnit_Framework_MockObject_MockObject
                    
37	 */
                    
165	protected function buildMockModule() {
                    
166		$this->encryptionModule = $this->getMockBuilder('\OCP\Encryption\IEncryptionModule')
                    
167			->disableOriginalConstructor()
                    
167			->disableOriginalConstructor()
                    
168			->setMethods(['getId', 'getDisplayName', 'begin', 'end', 'encrypt', 'decrypt', 'update', 'shouldEncrypt', 'getUnencryptedBlockSize', 'isReadable'])
                    
169			->getMock();
                    
178		$this->encryptionModule->expects($this->any())->method('shouldEncrypt')->willReturn(true);
                    
179		$this->encryptionModule->expects($this->any())->method('getUnencryptedBlockSize')->willReturn(8192);
                    
180		$this->encryptionModule->expects($this->any())->method('isReadable')->willReturn(true);
                    
                
bootstrap.php https://github.com/abdelm/stationwagon.git | PHP | 245 lines
                    
1<?php
                    
2/**
                    
9 * @copyright  2010 - 2012 Fuel Development Team
                    
10 * @link       http://fuelphp.com
                    
11 */
                    
18// Load the base functions
                    
19require COREPATH.'base.php';
                    
20
                    
81		'Fuel\\Core\\Config_Interface'     => COREPATH.'classes/config/interface.php',
                    
82		'Fuel\\Core\\Config_Php'           => COREPATH.'classes/config/php.php',
                    
83		'Fuel\\Core\\Config_Yml'          => COREPATH.'classes/config/yml.php',
                    
124
                    
125		'Fuel\\Core\\Crypt'   => COREPATH.'classes/crypt.php',
                    
126
                    
172		'Fuel\\Core\\Lang_Interface'     => COREPATH.'classes/lang/interface.php',
                    
173		'Fuel\\Core\\Lang_Php'           => COREPATH.'classes/lang/php.php',
                    
174		'Fuel\\Core\\Lang_Yml'           => COREPATH.'classes/lang/yml.php',
                    
                
ext_stream.h https://gitlab.com/alvinahmadov2/hhvm | C Header | 290 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
5   | Copyright (c) 2010-2015 Facebook, Inc. (http://www.facebook.com)     |
                    
6   | Copyright (c) 1997-2010 The PHP Group                                |
                    
7   +----------------------------------------------------------------------+
                    
7   +----------------------------------------------------------------------+
                    
8   | This source file is subject to version 3.01 of the PHP license,      |
                    
9   | that is bundled with this package in the file LICENSE, and is        |
                    
10   | available through the world-wide-web at the following url:           |
                    
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          |
                    
14   | license@php.net so we can mail you a copy immediately.               |
                    
15   +----------------------------------------------------------------------+
                    
                
Mcrypt.php https://bitbucket.org/haichau59/manga.git | PHP | 364 lines
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Mcrypt.php 24594 2012-01-05 21:27:01Z matthew $
                    
20 */
                    
24 */
                    
25//require_once 'Zend/Filter/Encrypt/Interface.php';
                    
26
                    
34 */
                    
35class Zend_Filter_Encrypt_Mcrypt implements Zend_Filter_Encrypt_Interface
                    
36{
                    
163     * @param string $vector (Optional) Vector to set
                    
164     * @return Zend_Filter_Encrypt_Mcrypt
                    
165     */
                    
338
                    
339        $result = mcrypt_generic_init($cipher, $key, $this->_encryption['vector']);
                    
340        if ($result < 0) {
                    
                
obj_encdata.c https://github.com/srajiv/trousers.git | C | 485 lines
                    
82TSS_RESULT
                    
83obj_encdata_get_policy(TSS_HENCDATA hEncData, UINT32 policyType, TSS_HPOLICY *phPolicy)
                    
84{
                    
95		case TSS_POLICY_USAGE:
                    
96			*phPolicy = encdata->usagePolicy;
                    
97			break;
                    
147
                    
148	if (encdata->encryptedDataLength == 0) {
                    
149		result = TSPERR(TSS_E_INVALID_OBJ_ACCESS);
                    
151	} else {
                    
152		*data = calloc_tspi(obj->tspContext, encdata->encryptedDataLength);
                    
153		if (*data == NULL) {
                    
154			LogError("malloc of %d bytes failed.",
                    
155					encdata->encryptedDataLength);
                    
156			result = TSPERR(TSS_E_OUTOFMEMORY);
                    
                
mod_cml_lua.c https://github.com/clibrepo/04f6ea02286af71632b72d73554979a61da424cf681886674b21ecd595715c12.git | C | 469 lines
                    
175				if (is_key) {
                    
176					if (0 == strncmp(ds->value->ptr + key, "PHPSESSID", i - key)) {
                    
177						/* found PHP-session-id-key */
                    
228	/* register functions */
                    
229	lua_register(L, "md5", f_crypto_md5);
                    
230	lua_register(L, "file_mtime", f_file_mtime);
                    
                
application.php https://bitbucket.org/Maron1/taqman.git | PHP | 199 lines
                    
1<?php
                    
2
                    
35	|
                    
36	| If you are including the "index.php" in your URLs, you can ignore this.
                    
37	| However, if you are using mod_rewrite to get cleaner URLs, just set
                    
41
                    
42	'index' => 'index.php',
                    
43
                    
48	|
                    
49	| This key is used by the encryption and cookie classes to generate secure
                    
50	| encrypted strings and hashes. It is extremely important that this key
                    
165		'Cookie'     	=> 'Laravel\\Cookie',
                    
166		'Crypter'    	=> 'Laravel\\Crypter',
                    
167		'DB'         	=> 'Laravel\\Database',
                    
                
form_api.php https://github.com/fusenigk/mantisbt-1.git | PHP | 207 lines
                    
31 * @uses constant_inc.php
                    
32 * @uses crypto_api.php
                    
33 * @uses gpc_api.php
                    
39require_api( 'constant_inc.php' );
                    
40require_api( 'crypto_api.php' );
                    
41require_api( 'gpc_api.php' );
                    
107function form_security_param( $p_form_name ) {
                    
108	if ( PHP_CLI == php_mode() || OFF == config_get_global( 'form_security_validation' ) ) {
                    
109		return '';
                    
129function form_security_validate( $p_form_name ) {
                    
130	if ( PHP_CLI == php_mode() || OFF == config_get_global( 'form_security_validation' ) ) {
                    
131		return true;
                    
171function form_security_purge( $p_form_name ) {
                    
172	if ( PHP_CLI == php_mode() || OFF == config_get_global( 'form_security_validation' ) ) {
                    
173		return;
                    
                
installation.rst https://github.com/steinkel/docs.git | ReStructuredText | 197 lines
                    
13-  HTTPサーバー。例: Apache。mod\_rewriteが推奨されますが、必須ではありません。
                    
14-  PHP 5.3.0 以上 (CakePHP バージョン 2.6 以下は、 PHP 5.2.8 以上をサポートします) 。
                    
15   CakePHP バージョン 2.8.0 以上は PHP 7 をサポートします。 PHP 7.1 以上を使用するためには、
                    
47
                    
48CakePHP の最新のリリースは `GitHub <https://github.com/cakephp/cakephp>`_ でホスティングされています。
                    
49GitHubにはCakePHP自身、また多くのCakePHPプラグインが含まれています。
                    
49GitHubにはCakePHP自身、また多くのCakePHPプラグインが含まれています。
                    
50CakePHPのリリースは `GitHub tags <https://github.com/cakephp/cakephp/tags>`_ で入手できます。
                    
51
                    
117
                    
118    git clone -b 2.x git://github.com/cakephp/cakephp.git /home/mark/projects/cakephp
                    
119
                    
126
                    
127    include_path = .:/home/mark/projects/cakephp/lib:/usr/local/php/lib/php
                    
128
                    
                
Install.php https://gitlab.com/axeltizon/magento-demopoweraccess | PHP | 173 lines
                    
1<?php
                    
2/**
                    
24 *
                    
25 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
                    
26 */
                    
111                'key',
                    
112                $this->installer->getInstallInfo()[SetupConfigOptionsList::KEY_ENCRYPTION_KEY]
                    
113            );
                    
                
Bcmath.php https://github.com/mfairchild365/zf2.git | PHP | 205 lines
                    
1<?php
                    
2/**
                    
15 * @category   Zend
                    
16 * @package    Zend_Crypt
                    
17 * @subpackage Math
                    
24 */
                    
25namespace Zend\Crypt\Math\BigInteger;
                    
26
                    
27/**
                    
28 * Support for arbitrary precision mathematics in PHP.
                    
29 *
                    
29 *
                    
30 * Zend_Crypt_Math_BigInteger_Bcmath is a wrapper across the PHP BCMath
                    
31 * extension.
                    
32 *
                    
33 * @uses       Zend\Crypt\Math\BigInteger\BigIntegerCapable
                    
34 * @category   Zend
                    
                
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//
                    
89
                    
90function _rsasign_getDecryptSignatureBI(biSig, hN, hE) {
                    
91  var rsa = new RSAKey();
                    
92  rsa.setPublic(hN, hE);
                    
93  var biDecryptedSig = rsa.doPublic(biSig);
                    
94  return biDecryptedSig;
                    
97function _rsasign_getHexDigestInfoFromSig(biSig, hN, hE) {
                    
98  var biDecryptedSig = _rsasign_getDecryptSignatureBI(biSig, hN, hE);
                    
99  var hDigestInfo = biDecryptedSig.toString(16).replace(/^1f+00/, '');
                    
136  var biSig = parseBigInt(hSig, 16);
                    
137  var biDecryptedSig = this.doPublic(biSig);
                    
138  var hDigestInfo = biDecryptedSig.toString(16).replace(/^1f+00/, '');
                    
                
EsmtpTransport.php https://bitbucket.org/seyar/kinda.local.git | PHP | 349 lines
                    
1<?php
                    
2
                    
20
                    
21//@require 'Swift/Transport/AbstractSmtpTransport.php';
                    
22//@require 'Swift/Transport/EsmtpHandler.php';
                    
22//@require 'Swift/Transport/EsmtpHandler.php';
                    
23//@require 'Swift/Transport/IoBuffer.php';
                    
24//@require 'Swift/Transport/SmtpAgent.php';
                    
24//@require 'Swift/Transport/SmtpAgent.php';
                    
25//@require 'Swift/TransportException.php';
                    
26//@require 'Swift/Mime/Message.php';
                    
26//@require 'Swift/Mime/Message.php';
                    
27//@require 'Swift/Events/EventDispatcher.php';
                    
28
                    
138  /**
                    
139   * Set the encryption type (tls or ssl)
                    
140   * @param string $encryption
                    
                
GuiZombieWorldSlot.java https://gitlab.com/BGCX261/zombie-craft-svn-to-git.git | Java | 274 lines
                    
53		    // Encrypt
                    
54		    //String encrypted = encrypter.encrypt("Don't tell anybody!");
                    
55		    
                    
61		    //System.out.println(encrypter.encrypt("r.0.0.mcr"));
                    
62		    //System.out.println(encrypter.encrypt("http://modzilla.zymichost.com/store/haspaid.php?user="));
                    
63		    //System.out.println(encrypter.encrypt("&mapid="));
                    
79			String zipname = ((ZombieSaveRecord)selectWorldGui.func_22090_a(selectWorldGui).get(i)).getZipname();
                    
80			File file3 = new File(Minecraft.getMinecraftDir(), encrypter.decrypt("xToToq+1sng="));			
                    
81			File file2 = new File(file3, zipname);
                    
88			{
                    
89				File mapFile = new File(new File(unzipDir,encrypter.decrypt("be5RyWQXzcM=")),encrypter.decrypt("aTm7Jt3UYMdB9O1sF4IfgQ=="));
                    
90				InputStream is = new FileInputStream(mapFile);
                    
126					}
                    
127					URL url = new URL((new StringBuilder()).append(encrypter.decrypt("Png6B83+j+VGJz6H3AxK25wpR4rQde5Uzynd1mtqxW7BWQ7LHW29TUvjgCry0uDj5/Ohs8xLmAY=")).append(ModLoader.getMinecraftInstance().session.username).append(encrypter.decrypt("Xp6gmzWvEFk=")).append(bytes[bytes.length-1]).append(encrypter.decrypt("BCUegjYEKn0=")).append(md5).toString());
                    
128					//System.out.println(url);
                    
                
AwsClient.php https://gitlab.com/github-cloud-corp/aws-sdk-php | PHP | 317 lines
                    
1<?php
                    
2namespace Aws;
                    
53     *
                    
54     * - api_provider: (callable) An optional PHP callable that accepts a
                    
55     *   type, service, and version argument, and returns an array of
                    
87     *   of S3).
                    
88     * - endpoint_provider: (callable) An optional PHP callable that
                    
89     *   accepts a hash of options including a "service" and "region" key and
                    
117     *   utilize SSL/TLS connections) by default. You can attempt to connect to
                    
118     *   a service over an unencrypted "http" endpoint by setting ``scheme`` to
                    
119     *   "http".
                    
                
centreonAuth.SSO.class.php https://gitlab.com/florianocomercial/centreon | PHP | 112 lines
                    
1<?php
                    
2/*
                    
35
                    
36include_once (_CENTREON_PATH_."/www/class/centreonAuth.class.php");
                    
37
                    
42
                    
43    public function __construct($username, $password, $autologin, $pearDB, $CentreonLog, $encryptType = 1, $token = "", $generalOptions) {
                    
44        $this->options_sso = $generalOptions;
                    
62
                    
63        parent::__construct($username, $password, $autologin, $pearDB, $CentreonLog, $encryptType, $token);
                    
64        
                    
                
User.php https://gitlab.com/Georgiy.Zhegusov/museum_documents | PHP | 187 lines
                    
1<?php
                    
2
                    
123			if( $insert || $this->passwordFirst!='' ) {
                    
124				$this->password = $this->decrypt($this->passwordFirst);
                    
125				$this->generateAuthKey();
                    
164    {
                    
165		return $this->decrypt($pass)==$this->password;
                    
166    }
                    
182
                    
183	private function decrypt( $string ){
                    
184		return crypt($string, "$5\$rounds=132000\$".$this->email);
                    
                
CssTest.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 148 lines
                    
1<?php
                    
2/**
                    
11/**
                    
12 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
                    
13 */
                    
13 */
                    
14class CssTest extends \PHPUnit_Framework_TestCase
                    
15{
                    
21    /**
                    
22     * @var \Magento\Framework\ObjectManagerInterface|\PHPUnit_Framework_MockObject_MockObject
                    
23     */
                    
26    /**
                    
27     * @var \PHPUnit_Framework_MockObject_MockObject
                    
28     */
                    
31    /**
                    
32     * @var \PHPUnit_Framework_MockObject_MockObject
                    
33     */
                    
                
QueueServiceProvider.php https://gitlab.com/xolotsoft/pumasruiz | PHP | 305 lines
                    
1<?php namespace Illuminate\Queue;
                    
2
                    
240		{
                    
241			return new IronConnector($app['encrypter'], $app['request']);
                    
242		});
                    
286		{
                    
287			return new IlluminateQueueClosure($app['encrypter']);
                    
288		});
                    
                
Change.php https://gitlab.com/yousafsyed/easternglamor | PHP | 204 lines
                    
58     * @param \Magento\Config\Model\Config\Structure $structure
                    
59     * @param \Magento\Framework\Encryption\EncryptorInterface $encryptor
                    
60     * @param \Magento\Framework\App\DeploymentConfig\Writer $writer
                    
66        \Magento\Config\Model\Config\Structure $structure,
                    
67        \Magento\Framework\Encryption\EncryptorInterface $encryptor,
                    
68        \Magento\Framework\App\DeploymentConfig\Writer $writer,
                    
107        $encryptSegment = new ConfigData(ConfigFilePool::APP_ENV);
                    
108        $encryptSegment->set(ConfigOptionsListConstants::CONFIG_PATH_CRYPT_KEY, $this->encryptor->exportKeys());
                    
109
                    
176                    $table,
                    
177                    ['value' => $this->encryptor->encrypt($this->encryptor->decrypt($value))],
                    
178                    ['config_id = ?' => (int)$configId]
                    
198                $table,
                    
199                ['cc_number_enc' => $this->encryptor->encrypt($this->encryptor->decrypt($value))],
                    
200                ['entity_id = ?' => (int)$valueId]
                    
                
RemovedExtensionsSniff.php git://github.com/wimg/PHPCompatibility.git | PHP | 347 lines
                    
2/**
                    
3 * PHPCompatibility, an external standard for PHP_CodeSniffer.
                    
4 *
                    
7 * @license   https://opensource.org/licenses/LGPL-3.0 LGPL3
                    
8 * @link      https://github.com/PHPCompatibility/PHPCompatibility
                    
9 */
                    
20 * This sniff examines function calls made and flags function calls to functions
                    
21 * prefixed with the dedicated prefix from a deprecated/removed native PHP extension.
                    
22 *
                    
27 * from being flagged by this sniff via a property in a custom ruleset
                    
28 * (since PHPCompatibility 7.0.2).
                    
29 *
                    
224     *
                    
225     * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
                    
226     * @param int                         $stackPtr  The position of the current token in the
                    
                
config.php http://creative-codon.googlecode.com/svn/trunk/ | PHP | 363 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
173|	0 = Disables logging, Error logging TURNED OFF
                    
174|	1 = Error Messages (including PHP errors)
                    
175|	2 = Debug Messages
                    
200|
                    
201| Each item that is logged has an associated date. You can use PHP date
                    
202| codes to set your own date formatting
                    
219|--------------------------------------------------------------------------
                    
220| Encryption Key
                    
221|--------------------------------------------------------------------------
                    
226*/
                    
227$config['encryption_key'] = 'codon';
                    
228
                    
238|   when the browser window is closed
                    
239| 'sess_encrypt_cookie'		= Whether to encrypt the cookie
                    
240| 'sess_use_database'		= Whether to save the session data to a database
                    
                
ContentPropertiesSerializerTest.php git://github.com/WindowsAzure/azure-sdk-for-php.git | PHP | 313 lines
                    
1<?php
                    
2/**
                    
13 *
                    
14 * PHP version 5
                    
15 *
                    
17 *
                    
18 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
19 * @copyright Microsoft Corporation
                    
21 *
                    
22 * @link      https://github.com/WindowsAzure/azure-sdk-for-php
                    
23 */
                    
32use WindowsAzure\MediaServices\Models\TaskOptions;
                    
33use PHPUnit\Framework\TestCase;
                    
34
                    
39 *
                    
40 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
41 * @copyright Microsoft Corporation
                    
                
Gmp.php https://github.com/jacknicole/sugarcrm_dev.git | PHP | 196 lines
                    
1<?php
                    
2/**
                    
15 * @category   Zend
                    
16 * @package    Zend_Crypt
                    
17 * @subpackage Math
                    
23/**
                    
24 * @see Zend_Crypt_Math_BigInteger_Interface
                    
25 */
                    
25 */
                    
26require_once 'Zend/Crypt/Math/BigInteger/Interface.php';
                    
27
                    
30 *
                    
31 * Zend_Crypt_Math_BigInteger_Bcmath is a wrapper across the PHP BCMath
                    
32 * extension.
                    
38 */
                    
39class Zend_Crypt_Math_BigInteger_Gmp implements Zend_Crypt_Math_BigInteger_Interface
                    
40{
                    
                
PathautoState.php https://gitlab.com/mohamed_hussein/prodt | PHP | 186 lines
                    
1<?php
                    
2
                    
4
                    
5use Drupal\Component\Utility\Crypt;
                    
6use Drupal\Core\TypedData\TypedData;
                    
182    }
                    
183    return Crypt::hashBase64($entity_id);
                    
184  }
                    
                
Proxy.php https://github.com/mfairchild365/zf2.git | PHP | 269 lines
                    
1<?php
                    
2/**
                    
232        $modes = array(
                    
233            STREAM_CRYPTO_METHOD_TLS_CLIENT,
                    
234            STREAM_CRYPTO_METHOD_SSLv3_CLIENT,
                    
234            STREAM_CRYPTO_METHOD_SSLv3_CLIENT,
                    
235            STREAM_CRYPTO_METHOD_SSLv23_CLIENT,
                    
236            STREAM_CRYPTO_METHOD_SSLv2_CLIENT
                    
240        foreach($modes as $mode) {
                    
241            $success = stream_socket_enable_crypto($this->socket, true, $mode);
                    
242            if ($success) break;
                    
                
Queue.php https://gitlab.com/jjpa2018/dashboard | PHP | 398 lines
                    
1<?php
                    
2
                    
7use Illuminate\Container\Container;
                    
8use Illuminate\Contracts\Encryption\Encrypter;
                    
9use Illuminate\Contracts\Queue\ShouldBeEncrypted;
                    
155
                    
156        $command = $this->jobShouldBeEncrypted($job) && $this->container->bound(Encrypter::class)
                    
157                    ? $this->container[Encrypter::class]->encrypt(serialize(clone $job))
                    
221    /**
                    
222     * Determine if the job should be encrypted.
                    
223     *
                    
226     */
                    
227    protected function jobShouldBeEncrypted($job)
                    
228    {
                    
232
                    
233        return isset($job->shouldBeEncrypted) && $job->shouldBeEncrypted;
                    
234    }
                    
                
HashTest.php https://bitbucket.org/pcelta/zf2.git | PHP | 145 lines
                    
1<?php
                    
2/**
                    
7 * @license   http://framework.zend.com/license/new-bsd New BSD License
                    
8 * @package   Zend_Crypt
                    
9 */
                    
10
                    
11namespace ZendTest\Crypt;
                    
12
                    
12
                    
13use Zend\Crypt\Hash;
                    
14
                    
21 * @category   Zend
                    
22 * @package    Zend_Crypt
                    
23 * @subpackage UnitTests
                    
23 * @subpackage UnitTests
                    
24 * @group      Zend_Crypt
                    
25 */
                    
                
Smtp.php https://github.com/bhaumik25/zend-framework.git | PHP | 419 lines
                    
33 */
                    
34require_once 'Zend/Mail/Protocol/Abstract.php';
                    
35
                    
139                default:
                    
140                    require_once 'Zend/Mail/Protocol/Exception.php';
                    
141                    throw new Zend_Mail_Protocol_Exception($ssl . ' is unsupported SSL type');
                    
145
                    
146        // If no port has been specified then check the master PHP ini file. Defaults to 25 if the ini setting is null.
                    
147        if ($port == null) {
                    
184        if (!$this->_validHost->isValid($host)) {
                    
185            require_once 'Zend/Mail/Protocol/Exception.php';
                    
186            throw new Zend_Mail_Protocol_Exception(join(', ', $this->_validHost->getMessage()));
                    
196            $this->_expect(220, 180);
                    
197            if (!stream_socket_enable_crypto($this->_socket, true, STREAM_CRYPTO_METHOD_TLS_CLIENT)) {
                    
198                require_once 'Zend/Mail/Protocol/Exception.php';
                    
                
 

Source

Language