hash($key, \dechex($val)); } public static function hashType(): string { return "SHA1"; } /** @SuppressWarnings(PHPMD.StaticAccess) */ public static function keygen(): string { return Base32::encodeUpper(random_bytes(this::DEFAULT_SECRET_SIZE)); } } ?>