\CryptoManana\Core\Interfaces\MessageDigestionRepetitiveHashingInterface

Interface RepetitiveHashingInterface - Interface for repetitive/recursive data hashing.

Summary

Methods
Constants
repetitiveHashData()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

repetitiveHashData()

repetitiveHashData(string  $data, integer  $iterations = 2) : string

Calculates a hash value for the given data via repetitive/recursive digestion.

Parameters

string $data

The input string.

integer $iterations

The number of internal iterations to perform.

Throws

\Exception

Validation errors.

Returns

string —

The digest.