How to Use 2FA Code Generator

Complete step-by-step guide to generate TOTP codes for two-factor authentication

1Get Your Secret Key

First, you need to obtain the secret key from your service provider (Google, Microsoft, GitHub, etc.):

  • Go to your account security settings
  • Enable two-factor authentication
  • Choose "Authenticator app" option
  • Copy the secret key (usually a long string of letters and numbers)
Note: The secret key is different from the QR code. Look for text like "Can't scan? Enter this key manually"

2Enter Secret Key

On our 2FA Generator page:

  1. Paste your secret key into the input field
  2. The system will automatically validate the key format
  3. If valid, you'll see a 6-digit code appear
Security: Your secret key is processed locally in your browser and never sent to our servers.

3Use the Generated Code

Once you have the 6-digit code:

  • Copy the code (it refreshes every 30 seconds)
  • Go back to your service provider's verification page
  • Enter the 6-digit code
  • Complete the 2FA setup
Success! Your two-factor authentication is now active and more secure.

Troubleshooting

Code doesn't work?

  • Check if your device time is synchronized
  • Verify the secret key is entered correctly
  • Make sure you're using the current code (not expired)

Invalid secret key?

  • Remove any spaces from the key
  • Ensure you copied the complete key
  • Try getting a new key from your service provider

Hướng Dẫn Sử Dụng Trình Tạo Mã 2FA

Hướng dẫn chi tiết từng bước để tạo mã TOTP cho xác thực hai yếu tố

1Lấy Secret Key

Đầu tiên, bạn cần lấy secret key từ nhà cung cấp dịch vụ (Google, Microsoft, GitHub, v.v.):

  • Vào cài đặt bảo mật tài khoản của bạn
  • Bật xác thực hai yếu tố
  • Chọn tùy chọn "Ứng dụng xác thực"
  • Sao chép secret key (thường là chuỗi dài các chữ cái và số)
Lưu ý: Secret key khác với mã QR. Tìm dòng chữ như "Không quét được? Nhập key này thủ công"

2Nhập Secret Key

Trên trang Tạo mã 2FA của chúng tôi:

  1. Dán secret key vào ô nhập liệu
  2. Hệ thống sẽ tự động kiểm tra định dạng key
  3. Nếu hợp lệ, bạn sẽ thấy mã 6 chữ số xuất hiện
Bảo mật: Secret key được xử lý cục bộ trên trình duyệt và không bao giờ gửi đến máy chủ của chúng tôi.

3Sử Dụng Mã Được Tạo

Khi đã có mã 6 chữ số:

  • Sao chép mã (mã sẽ làm mới mỗi 30 giây)
  • Quay lại trang xác minh của nhà cung cấp dịch vụ
  • Nhập mã 6 chữ số
  • Hoàn thành thiết lập 2FA
Thành công! Xác thực hai yếu tố của bạn đã được kích hoạt và an toàn hơn.

Khắc Phục Sự Cố

Mã không hoạt động?

  • Kiểm tra xem thời gian thiết bị có được đồng bộ không
  • Xác minh secret key được nhập chính xác
  • Đảm bảo bạn đang sử dụng mã hiện tại (chưa hết hạn)

Secret key không hợp lệ?

  • Xóa bỏ khoảng trắng trong key
  • Đảm bảo bạn đã sao chép đầy đủ key
  • Thử lấy key mới từ nhà cung cấp dịch vụ