|
cryptal
latest
Cryptography Abstraction Layer
|
Inheritance diagram for fpoirotte\Cryptal\Implementers\AbstractHash:Static Public Member Functions | |
| static | hash (HashEnum $algorithm, $data, $raw=false) |
Additional Inherited Members | |
Public Member Functions inherited from fpoirotte\Cryptal\AbstractContextBasedAlgorithm | |
| __toString () | |
| finalize ($raw=false) | |
| update ($data) | |
Public Member Functions inherited from fpoirotte\Cryptal\Implementers\HashInterface | |
| __construct (HashEnum $algorithm) | |
Public Member Functions inherited from fpoirotte\Cryptal\ContextBasedInterface | |
| __toString () | |
| finalize ($raw=false) | |
| update ($data) | |
Protected Member Functions inherited from fpoirotte\Cryptal\AbstractContextBasedAlgorithm | |
| internalFinalize () | |
| internalUpdate ($data) | |
Interface for hashes/message digests.
Definition at line 12 of file AbstractHash.php.
|
staticfinal |
All-in-one function to quickly compute the hash/message digest for a string of text.
| HashEnum | $algorithm | Algorithm to use to produce the hash/message digest. |
| string | $data | Data to hash. |
| bool | $raw | (optional) Whether the result should be returned in raw form (true) or using its hexadecimal representation (false). Defaults to false. |
| string | Hash/message digest for the given data. |
Implements fpoirotte\Cryptal\Implementers\HashInterface.
Definition at line 14 of file AbstractHash.php.