* 'use_opaque' => <bool> Whether to send the opaque value in the header
* 'alogrithm' => <string> See $_supportedAlgos. Default: MD5
} else {
$this->_algo = 'MD5';
// If MD5-sess is used, a1 value is made of the user's password
// easier
$ha2 = hash('md5', $a2);
$nonce = hash('md5', $timeout . ':' . $this->_request->getServer('HTTP_USER_AGENT') . ':' . __CLASS__);
{
return hash('md5', 'Opaque Data:' . __CLASS__);
// The spec says this should default to MD5 if omitted. OK, so how does
} else {
$data['algorithm'] = 'MD5'; // = $this->_algo; ?
{
$name1 = $this->_dir . '/assoc_url_' . md5($url);
} else {
$name2 = $this->_dir . '/assoc_handle_' . md5($handle);
{
$name2 = $this->_dir . '/assoc_handle_' . md5($handle);
{
$name1 = $this->_dir . '/assoc_url_' . md5($url);
if ($url === $storedUrl) {
$name2 = $this->_dir . '/assoc_handle_' . md5($handle);
{
$name = $this->_dir . '/discovery_' . md5($id);
{
$name = $this->_dir . '/discovery_' . md5($id);
{
$name = $this->_dir . '/nonce_' . md5($provider.';'.$nonce);
{
$name = $this->_dir . '/assoc_' . md5($handle);
{
$name = $this->_dir . '/assoc_' . md5($handle);
{
$name = $this->_dir . '/assoc_' . md5($handle);
{
$name = $this->_dir . '/user_' . md5($id);
{
$name = $this->_dir . '/user_' . md5($id);
{
$name = $this->_dir . '/user_' . md5($id);
{
$name = $this->_dir . '/user_' . md5($id);
{
$name = $this->_dir . '/user_' . md5($id);
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Crammd5.php 8064 2008-02-16 10:58:39Z thomas $
/**
* Performs CRAM-MD5 authentication
*/
class Zend_Mail_Protocol_Smtp_Auth_Crammd5 extends Zend_Mail_Protocol_Smtp
/**
* @todo Perform CRAM-MD5 authentication with supplied credentials
$this->_send('AUTH CRAM-MD5');
$challenge = base64_decode($challenge);
$digest = $this->_hmacMd5($this->_password, $challenge);
/**
* Prepare CRAM-MD5 response to server's ticket
*/
protected function _hmacMd5($key, $data, $block = 64)
* - Type of read control (only if read control is enabled). Available values are :
* 'md5' for a md5 hash control (best but slowest)
* @param string $data Data
* @param string $controlType Type of control 'md5', 'crc32' or 'strlen'
switch ($controlType) {
case 'md5':
return md5($data);
case 'crc32':
/**
* $_credentialTreatment - Treatment applied to the credential, such as MD5() or PASSWORD()
* 'PASSWORD(?)'
* 'MD5(?)'
* setCredential() - set the credential value to be used, optionally can specify a treatment
* to be used, should be supplied in parameterized form, such as 'MD5(?)' or 'PASSWORD(?)'
if ( $category == 'web' ) $url[$key] = 'http://images.websnapr.com/?url=' . urlencode( $url['url'] ) . '&size=s&nocache=58';
elseif ( file_exists( $_SERVER['DOCUMENT_ROOT'] . "public/images/thumbnails/".md5( $url['id_url'] ).".jpg" ) ) $url[$key] = "/public/images/thumbnails/".md5( $url['id_url'] ).".jpg";
if ( ! file_exists( $_SITE['config']['fs']['path_public'] . DIRECTORY_SEPARATOR . 'images' . DIRECTORY_SEPARATOR . 'thumbnails' . DIRECTORY_SEPARATOR . md5( $url['id_url'] ) . '.jpg' ) )
$image = ( file_exists( $_SITE['config']['fs']['path_public'] . DIRECTORY_SEPARATOR . 'images' . DIRECTORY_SEPARATOR . 'thumbnails' . DIRECTORY_SEPARATOR . md5( $url['id_url'] ) . '.jpg' ) ) ? 'Y' : 'N';