TOTP 2FA
Trung cấp
CA 05 / 11
Sàn crypto: vì sao Skew: 1 trong xác thực TOTP?
Sàn giao dịch crypto, mã 2FA đổi mới mỗi 30 giây:
valid, _ := totp.ValidateCustom(code, secretBase32, time.Now(), totp.ValidateOpts{
Period: 30, Skew: 1, Digits: otp.DigitsSix, Algorithm: otp.AlgorithmSHA1,
})
❯ Tham số Skew: 1 trong đoạn code trên có ý nghĩa gì?