Exemplo n.º 1
0
Arquivo: Otp.php Projeto: blar/otp
 /**
  * @param $counter
  *
  * @return string
  */
 protected function generateHash(string $counter) : string
 {
     $generator = new HmacHashGenerator($this->getAlgorithm(), $this->getSecret());
     $hash = $generator->hash($counter);
     $value = $hash->getValue();
     return $value;
 }