public static function Braintree_Digest::hexDigest in Commerce Braintree 7
6 calls to Braintree_Digest::hexDigest()
- Braintree_DigestTest::testHexDigest in braintree_php/
tests/ unit/ DigestTest.php - Braintree_DigestTest::testHexDigest_again in braintree_php/
tests/ unit/ DigestTest.php - Braintree_TransparentRedirect::_hash in braintree_php/
lib/ Braintree/ TransparentRedirect.php - @ignore
- Braintree_WebhookNotification::verify in braintree_php/
lib/ Braintree/ WebhookNotification.php - Braintree_WebhookNotification::_validateSignature in braintree_php/
lib/ Braintree/ WebhookNotification.php
File
- braintree_php/
lib/ Braintree/ Digest.php, line 15
Class
- Braintree_Digest
- Digest creates an HMAC-SHA1 hash for encrypting messages
Code
public static function hexDigest($string) {
if (function_exists('hash_hmac')) {
return self::_builtInHmacSha1($string, Braintree_Configuration::privateKey());
}
else {
return self::_hmacSha1($string, Braintree_Configuration::privateKey());
}
}