You appear to be a bot. Output may be restricted
Description
Usage
Client::sign( $data, $algorithm );
Parameters
- $data
- ( mixed ) required –
- $algorithm
- ( mixed ) required –
Returns
void
Source
File name: easy-digital-downloads/includes/gateways/libs/amazon/Client.php
Lines:
1 to 12 of 12
private function sign($data, $algorithm) { if ($algorithm === 'HmacSHA1') { $hash = 'sha1'; } else if ($algorithm === 'HmacSHA256') { $hash = 'sha256'; } else { throw new \Exception("Non-supported signing method specified"); } return base64_encode(hash_hmac($hash, $data, $this->config['secret_key'], true)); }