Class hash
Calculates a hash of any input data using a specified method.
- Core\Object implements Core\Chainable
-
Core\Set
implements
Core\Accessor
-
Core\Set\Mutable
implements
Core\Mutator
-
Core\Field
implements
Core\Inquiry
-
Core\Encoder
-
Core\Encoder\Driver\hash
Package: Core\Encoder
Since: 3.0
Requires: PHP 5.3, PHP Message Digest Framework extension 1.1
Version: 1.0
Located at Encoder/Driver/hash.inc.php
Methods summary
public
|
|
public
|
|
public
string
|
|
public
boolean
|
|
public
|
|
public
|
#
updateFromStream(
Updates the hash with additional data read from a stream. |
protected
string
|
Methods inherited from Core\Encoder
__invoke(),
autocreate(),
chain(),
decoderChainURI(),
encode(),
encoderChainURI(),
getDataForUndefinedKey(),
resolveDecoder(),
resolveDecoderChain(),
verify()
Methods inherited from Core\Field
getDataForKey(),
getDataForKeys(),
issetDataForKey(),
offsetExists(),
offsetGet(),
offsetSet(),
offsetUnset()
Methods inherited from Core\Set\Mutable
Methods inherited from Core\Object
__autocreateFactory(),
__call(),
__processParameters(),
__toString(),
attachMethod(),
getValueForKey(),
getValueForKeyPath(),
getValueForUndefinedKey(),
hash(),
issetValueForKey(),
setValueForKey(),
setValueForKeyPath(),
setValueForUndefinedKey(),
uuid()
Constants summary
string |
BinaryParameter
Flag to indicate whether a raw binary hash should be generated or
otherwise a lowercase hexadecimal hash is returned. Defaults to |
#
'binary'
|
string |
KeyParameter
Shared key used by the selected hashing algorithm. |
#
'key'
|
Constants inherited from Core\Encoder
Constants inherited from Core\Object
AnyParameterType,
AutochainParameterType,
AutocreateParameterType,
BooleanParameterType,
CharParameterType,
EnumParameterType,
IntegerParameterType,
RealParameterType,
StringParameterType,
UserParameterType
Properties summary
protected
string
|
$_v_algorithm
KVC property. |
|
protected
resource
|
$_context
Hashing context. |
Properties inherited from Core\Encoder
Properties inherited from Core\Field
Magic properties
public read-only
string
|
$algorithm
Name of hashing algorithm extracted from URI path during initialisation. |