static public function isSameHashAlgorithm($secretPassphrase, $hashAlgorithm)
    {
        if (strlen(static::getComputedSignature($secretPassphrase, $hashAlgorithm)) == strlen(static::getSignature())) {
            return true;
        }

        return false;
    }
static public function isSameHashAlgorithm($secretPassphrase, $hashAlgorithm)
    {
        if (strlen(static::getComputedSignature($secretPassphrase, $hashAlgorithm)) == strlen(static::getSignature())) {
            return true;
        }

        return false;
    }
static public function isSameHashAlgorithm ( $ secretPassphrase , $ hashAlgorithm ) { if ( strlen ( static :: getComputedSignature ( $ secretPassphrase , $ hashAlgorithm ) ) == strlen ( static :: getSignature ( ) ) ) { return true ; } return false ; }
Detects is same hash algorithm is used for signature

@param string $secretPassphrase
@param string $hashAlgorithm

@return boolean
Detects is same hash algorithm is used for signature