Sub topic 2
Securing the Account with Two-Factor Authentication
This chapter assumes you have a registered exchange account, a phone with a camera and an authenticator app, and a government-issued photo ID. You should understand that a password alone is a weak login factor.
Two-factor authentication
Two-factor authentication (2FA) adds a second check to your login. The check proves you control a device, in addition to knowing your password. Most exchanges use time-based one-time passwords (TOTP), defined in RFC 6238. When you scan the setup QR code, your authenticator app stores a shared secret. The app combines that secret with the current time to produce a six-digit code that changes every 30 seconds.
How the code is computed
The following program reproduces the calculation. It uses the RFC 6238 test secret so you can check the output.
import base64
import hashlib
import hmac
import struct
import time
def totp(secret_b32, step=30, digits=6, at=None):
secret_b32 = secret_b32.replace(" ", "").upper()
secret_b32 += "=" * (-len(secret_b32) % 8)
key = base64.b32decode(secret_b32)
counter = int((time.time() if at is None else at) // step)
digest = hmac.new(key, struct.pack(">Q", counter), hashlib.sha1).digest()
offset = digest[-1] & 0x0F
value = struct.unpack(">I", digest[offset:offset + 4])[0] & 0x7FFFFFFF
return str(value % 10 ** digits).zfill(digits)
# RFC 6238 test secret at Unix time 59
print(totp("GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ", at=59)) # 287082Prefer an app-generated code to SMS codes. SMS can be intercepted through SIM swapping.
Verification tiers and what each unlocks
Exchanges group accounts into tiers. Each tier requires more documents and allows higher limits. The table below shows typical tiers. Exact requirements and limits differ by exchange and jurisdiction, so check the tier table before you start.
| Tier | Typical requirement | Typical access |
|---|---|---|
| Basic | Email and phone | Low deposit and trade limits |
| Verified | ID document and liveness check | Standard limits and fiat withdrawals |
| Enhanced | Proof of address and source of funds | Higher limits and additional products |
Submitting your identity document
Use a valid passport, national identity card, or driving licence. Photograph the full document on a flat surface in even light. All four corners must be visible, and glare must not hide any text. Enter your name exactly as it appears on the document. A mismatch in spelling or order is a common reason for rejection.
The selfie and liveness check
The liveness check confirms that a live person is in front of the camera, not a photo or a recorded video. The app typically asks you to look at the camera, turn your head, or read a short code aloud. Center your face, remove glasses and hats, and face a light source. Hold the document beside your face only when the instructions ask for it.
Proving where you live
Proof of address is a recent document that shows your name and residential address. Utility bills, bank statements, and official government letters are common choices. Most exchanges require a document dated within the last three months. Submit the full page, not a cropped part. Screenshots of an edited document will be rejected.
Exercise
Your authenticator app shows a code that the exchange rejects. What is the most likely cause, and how do you fix it?
Show answer
The phone clock is out of sync with network time, so the app generates a code for the wrong 30-second window. Turn on automatic date and time in the phone settings, then enter the current code.