Seditio Source
Root |
./othercms/xenForo 2.2.8/src/vendor/braintree/braintree_php/lib/Braintree/SignatureService.php
<?php
namespace Braintree;

class
SignatureService
{

    public function
__construct($key, $digest)
    {
       
$this->key = $key;
       
$this->digest = $digest;
    }

    public function
sign($payload)
    {
        return
$this->hash($payload) . "|" . $payload;
    }

    public function
hash($data)
    {
        return
call_user_func($this->digest, $this->key, $data);
    }

}
class_alias('Braintree\SignatureService', 'Braintree_SignatureService');