public static function Braintree_Digest::_builtInHmacSha1 in Commerce Braintree 7
3 calls to Braintree_Digest::_builtInHmacSha1()
- Braintree_Digest::hexDigest in braintree_php/
lib/ Braintree/ Digest.php - Braintree_DigestTest::testBuiltInHmacSha1 in braintree_php/
tests/ unit/ DigestTest.php - Braintree_DigestTest::testBuiltInHmacSha1_again in braintree_php/
tests/ unit/ DigestTest.php
File
- braintree_php/
lib/ Braintree/ Digest.php, line 40
Class
- Braintree_Digest
- Digest creates an HMAC-SHA1 hash for encrypting messages
Code
public static function _builtInHmacSha1($message, $key) {
return hash_hmac('sha1', $message, sha1(Braintree_Configuration::privateKey(), true));
}