KSC Open API
Kaspersky Security Center API description
wstring TotpRegistration::GenerateSecret ( [out] params  pSecret)

Generates TotpSecret with random key.

Parameters:
[out]pSecretparams including fields:
  • "TotpSecret" = [paramString] TOTP secret string in "trunc(base32(secret))" format
  • "TotpSecretUri" = [paramString] URI form of TOTP secret with settings
  • "TotpSecretQR" = [paramBinary] PNG image with QR code with secret and settings
Returns:
Id of generated secret to be referenced in this interface