TOTP 생성

는 “TOTP 생성”로 정의된 알고리즘 또는 형식에 따라 데이터를 생성합니다.

입력: 텍스트 (UTF-8) / 파일결과: 텍스트

텍스트 입력

도구 옵션

예제

A conventional six-digit authenticator

Use the public RFC test secret with 6 digits and a 30-second interval. The current answer changes with time; never use this published secret for an account.

입력

GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ

Expected checks

6 digits · 30-second period
Matches native HMAC for the current counter window.
이름
RFC6238-public-test
코드 길이
6
에포크 오프셋 (T0)
0
간격 (T1)
30
An eight-digit code

Use the public RFC test secret with 8 digits and a 30-second interval. The current answer changes with time; never use this published secret for an account.

입력

GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ

Expected checks

8 digits · 30-second period
Matches native HMAC for the current counter window.
이름
RFC6238-public-test
코드 길이
8
에포크 오프셋 (T0)
0
간격 (T1)
30
A one-minute interval

Use the public RFC test secret with 6 digits and a 60-second interval. The current answer changes with time; never use this published secret for an account.

입력

GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ

Expected checks

6 digits · 60-second period
Matches native HMAC for the current counter window.
이름
RFC6238-public-test
코드 길이
6
에포크 오프셋 (T0)
0
간격 (T1)
60
An eight-digit one-minute interval

Use the public RFC test secret with 8 digits and a 60-second interval. The current answer changes with time; never use this published secret for an account.

입력

GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ

Expected checks

8 digits · 60-second period
Matches native HMAC for the current counter window.
이름
RFC6238-public-test
코드 길이
8
에포크 오프셋 (T0)
0
간격 (T1)
60
A custom seven-digit interval

Use the public RFC test secret with 7 digits and a 45-second interval. The current answer changes with time; never use this published secret for an account.

입력

GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ

Expected checks

7 digits · 45-second period
Matches native HMAC for the current counter window.
이름
RFC6238-public-test
코드 길이
7
에포크 오프셋 (T0)
0
간격 (T1)
45
Generate TOTP

입력

JBSWY3DPEHPK3PXP

Expected checks

Matches /^URI: otpauth:\/\/totp\/Account\?secret=JBSWY3DPEHPK3PXP&algorithm=SHA1&digits=6&period=30\n\nPassword: \d{6}$/
이름
Account
코드 길이
6
에포크 오프셋 (T0)
0
간격 (T1)
30
invalid base32 secret rejected

입력

not,valid|base32;input

Expected rejection

Message contains
Invalid secret. The input must be a valid base32 string (characters A–Z and 2–7).
이름
Account
코드 길이
6
에포크 오프셋 (T0)
0
간격 (T1)
30

매개변수

매개변수기본값입력 및 선택 항목
이름"Account"필수
코드 길이6최솟값: 6. 최댓값: 8. 정수
에포크 오프셋 (T0)0최솟값: 0. 정수
간격 (T1)30최솟값: 1. 정수

관련 도구

기타

작업 참고 자료

원본 기술 문서 보기 (English)