Show / Hide Table of Contents

Secret Property

Secret

The secret is an arbitrary value encoded in Base32 according to RFC 3548.

C#
public string? Secret { get; set; }

Property Value

Type Description
string

Exceptions

Type Condition
InvalidOperationException

The value is invalid.

Remarks

Usually, the shared secret is provided by the provider or service website to the user by means of a QR code. Both sides need to retain this secret key for one-time password generation. The YubiKey takes care of securely storing this secret on behalf of the user when the credential is added. An authenticator app does not need to store this secret anywhere else.

In this article
Back to top Generated by DocFX