---
title: secret
framework: authenticationservices
role: symbol
role_heading: Instance Property
path: authenticationservices/asimportablecredential/totp/secret
---

# secret

The secret associated with this generator.

## Declaration

```swift
var secret: Data
```

## Discussion

Discussion This value must be Base32-encoded when encoded to JSON.

## See Also

### Accessing TOTP properties

- [period](authenticationservices/asimportablecredential/totp/period.md)
- [digits](authenticationservices/asimportablecredential/totp/digits.md)
- [algorithm](authenticationservices/asimportablecredential/totp/algorithm-swift.property.md)
- [ASImportableCredential.TOTP.Algorithm](authenticationservices/asimportablecredential/totp/algorithm-swift.enum.md)
- [issuer](authenticationservices/asimportablecredential/totp/issuer.md)
