Spaces:
No application file
No application file
File size: 780 Bytes
d2897cd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
<?php
namespace Mautic\CoreBundle\Helper\HashHelper;
/**
* Interface HashHelperInterface.
*/
interface HashHelperInterface
{
/**
* Generate a hash value.
*
* @param string $algo Name of selected hashing algorithm (i.e. "md5", "sha256", "haval160,4", etc..)
* @param string $data Message to be hashed
* @param bool $raw_output When set to TRUE, outputs raw binary data. FALSE outputs lowercase hexits.
*
* @return string a string containing the calculated message digest as lowercase hexits
* unless <i>raw_output</i> is set to true in which case the raw
* binary representation of the message digest is returned
*/
public function hash($algo, $data, $raw_output = false);
}
|