* '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; ?
* '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; ?
if ($this->config_cache_source_enabled) {
$sourceFilename = ($sourceFilename ? $sourceFilename : md5($rawImageData));
if ($this->new) {
$broad_directory_name = strtolower(md5($this->new));
$this->cache_filename .= '_new'.$broad_directory_name;
} elseif ($this->md5s) {
// source image MD5 hash provided
$this->DebugMessage('SetCacheFilename() _raw set from $this->md5s = "'.$this->md5s.'"', __FILE__, __LINE__);
$broad_directory_name = $this->md5s;
$this->cache_filename .= '_raw'.$this->md5s;
} elseif (!$this->src && $this->rawImageData) {
$this->DebugMessage('SetCacheFilename() _raw set from md5($this->rawImageData) = "'.md5($this->rawImageData).'"', __FILE__, __LINE__);
$broad_directory_name = strtolower(md5($this->rawImageData));
$this->cache_filename .= '_raw'.$broad_directory_name;
} else {
$this->DebugMessage('SetCacheFilename() _src set from md5($this->sourceFilename) "'.$this->sourceFilename.'" = "'.md5($this->sourceFilename).'"', __FILE__, __LINE__);
$broad_directory_name = strtolower(md5($this->sourceFilename));
+'// This is the Session ID\n'
+'// It contains the Order ID, the VirtueMart Session ID and an md5 HASH CheckCode\n'
+'$sessionid = sprintf("%08d", $order_id). $_COOKIE[\'virtuemart\'].md5($_SERVER[\'REMOTE_ADDR\']);\n'
+'$sessionid .= md5( $sessionid . $mosConfig_secret . ENCODE_KEY);\n'
+'$sessionid = base64_encode( $sessionid );\n'
+'// This is the Session ID\n'
+'// It contains the Order ID, the VirtueMart Session ID and an md5 HASH CheckCode\n'
+'$sessionid = sprintf("%08d", $order_id). $_COOKIE[\'virtuemart\'].md5($_SERVER[\'REMOTE_ADDR\']);\n'
+'$sessionid .= md5( $sessionid . $mosConfig_secret . ENCODE_KEY);\n'
+'$sessionid = base64_encode( $sessionid );\n'
+'// This is the Session ID\n'
+'// It contains the Order ID, the VirtueMart Session ID and an md5 HASH CheckCode\n'
+'$sessionid = sprintf("%08d", $order_id). $_COOKIE[\'virtuemart\'].md5($_SERVER[\'REMOTE_ADDR\']);\n'
+'$sessionid .= md5( $sessionid . $mosConfig_secret . ENCODE_KEY);\n'
+'$sessionid = base64_encode( $sessionid );\n'
* '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; ?
* '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; ?
* '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; ?
* '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; ?
* '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; ?
* '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; ?
* '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; ?
* '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; ?
* '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; ?
* '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; ?
* '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; ?
* '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; ?
/**
* The actual algorithm to use. Defaults to MD5
* 'use_opaque' => <bool> Whether to send the opaque value in the header
* 'algorithm' => <string> See $supportedAlgos. Default: MD5
// If MD5-sess is used, a1 value is made of the user's password
// colons.
if ($this->algo == 'MD5-sess') {
$ha1 = hash('md5', $ha1 . ':' . $data['nonce'] . ':' . $data['cnonce']);
}
// easier
$ha2 = hash('md5', $a2);
$message = $data['nonce'] . ':' . $data['nc'] . ':' . $data['cnonce'] . ':' . $data['qop'] . ':' . $ha2;
$digest = hash('md5', $ha1 . ':' . $message);
{
return hash('md5', 'Opaque Data:' . __CLASS__);
* '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; ?
* '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; ?
* 'use_opaque' => <bool> Whether to send the opaque value in the header
* 'alogrithm' => <string> See $_supportedAlgos. Default: MD5
// If MD5-sess is used, a1 value is made of the user's password
// colons.
if ($this->_algo == 'MD5-sess') {
$ha1 = hash('md5', $ha1 . ':' . $data['nonce'] . ':' . $data['cnonce']);
$message = $data['nonce'] . ':' . $data['nc'] . ':' . $data['cnonce'] . ':' . $data['qop'] . ':' . $ha2;
$digest = hash('md5', $ha1 . ':' . $message);
$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; ?