Security

TOTP Secret Generator

Live

TOTP Secret with subject-specific controls, reviewable intermediate detail, and private browser processing.

About TOTP Secret Generator

TOTP Secret with subject-specific controls, reviewable intermediate detail, and private browser processing. Enter base32 secret, digits, period in a purpose-built totp secret generator interface designed for this subject. RFC-compatible HMAC time steps generate a local one-time code. The result includes current code, seconds remaining, provisioning uri, supporting detail, and clear units or diagnostics. Results depend on entered assumptions, supported formats, browser capabilities, and rounding. Processing stays in your browser, and UtilityPages does not store the values you enter.

Set up TOTP Secret Generator

Workspace

Source workbench

Edit the source fields below and inspect the rendered output alongside your work.

Complete the fields to prepare a result.

Enter base32 secret.

Enter digits.

Enter period.

TOTP Secret Generator result

Enter the values above, then process to see a detailed result.

How TOTP Secret Generator works

RFC-compatible HMAC time steps generate a local one-time code.

How it works

RFC-compatible HMAC time steps generate a local one-time code. Results depend on entered assumptions, supported formats, browser capabilities, and rounding.

Examples

TOTP Secret Generator worked example

Example input
{
    "secret": "JBSWY3DPEHPK3PXP",
    "digits": 6,
    "period": 30
}
Expected result
{
    "code": "343403",
    "seconds_remaining": 26,
    "provisioning_uri": "otpauth://totp/UtilityPages:test?secret=JBSWY3DPEHPK3PXP&issuer=UtilityPages&period=30&digits=6"
}

Privacy

This tool does not store your inputs or results on UtilityPages.org.

Citations & sources

  1. Web Cryptography API
  2. Internet standards

Frequently asked questions

How does the TOTP Secret Generator work?

RFC-compatible HMAC time steps generate a local one-time code.

What information should I enter?

Enter base32 secret, digits, period. Use values and units from the same scenario so the result is internally consistent.

What results does this tool provide?

It reports current code, seconds remaining, provisioning uri, including intermediate context where it helps you review the answer.

What limitations should I know about?

Results depend on entered assumptions, supported formats, browser capabilities, and rounding.