lib/AktiveMerchant/Billing/Gateways/Modirum.php
protected function calculateDigest($xml)
    {
        $xml = $this->canonicalize($xml);
        $utf8 = utf8_encode($xml . $this->options['shared_secret']);

        return base64_encode(sha1($utf8, true));
    }
protected function calculateDigest($xml)
    {
        $xml = $this->canonicalize($xml);
        $utf8 = utf8_encode($xml . $this->options['shared_secret']);

        return base64_encode(sha1($utf8, true));
    }
protected function calculateDigest ( $ xml ) { $ xml = $ this -> canonicalize ( $ xml ) ; $ utf8 = utf8_encode ( $ xml . $ this -> options [ 'shared_secret' ] ) ; return base64_encode ( sha1 ( $ utf8 , true ) ) ; }
Calculate digest for message.

@param string $xml
@return string
Calculate digest for message .