About
totplab is a lab for finding out why a two-factor code does not work. It does not send the secret anywhere; it computes codes, measures clock drift, and validates the implementation against the official vectors.
What it does
G
i
v
e
n
a
B
a
s
e
3
2
s
e
c
r
e
t
i
t
c
o
m
p
u
t
e
s
R
F
C
6
2
3
8
T
O
T
P
a
n
d
R
F
C
4
2
2
6
H
O
T
P
c
o
d
e
s
,
r
e
a
d
s
a
n
d
w
r
i
t
e
s
o
t
p
a
u
t
h
:
/
/
U
R
I
s
,
d
r
a
w
s
t
h
e
Q
R
c
o
d
e
l
o
c
a
l
l
y
,
a
n
d
r
e
p
o
r
t
s
w
h
i
c
h
o
f
f
i
v
e
±
2
w
i
n
d
o
w
s
a
r
e
c
e
i
v
e
d
c
o
d
e
m
a
t
c
h
e
s
.
I
t
a
l
s
o
c
o
m
p
a
r
e
s
a
l
l
2
8
o
f
f
i
c
i
a
l
t
e
s
t
v
e
c
t
o
r
s
a
t
o
n
c
e
.
Why only in the browser
A
T
O
T
P
s
e
c
r
e
t
i
s
e
f
f
e
c
t
i
v
e
l
y
a
s
e
c
o
n
d
p
a
s
s
w
o
r
d
.
P
a
s
t
i
n
g
s
e
c
r
e
t
s
i
n
t
o
w
e
b
s
i
t
e
s
t
o
c
h
e
c
k
a
c
o
d
e
i
s
c
o
m
m
o
n
,
a
n
d
a
s
i
t
e
t
h
a
t
s
t
o
r
e
s
i
t
d
e
f
e
a
t
s
t
w
o
-
f
a
c
t
o
r
a
u
t
h
e
n
t
i
c
a
t
i
o
n
e
n
t
i
r
e
l
y
.
S
o
t
h
e
t
r
a
n
s
m
i
s
s
i
o
n
a
n
d
s
t
o
r
a
g
e
p
a
t
h
s
w
e
r
e
r
e
m
o
v
e
d
.
What it does not do
I
t
d
o
e
s
n
o
t
s
i
g
n
i
n
t
o
a
n
y
s
e
r
v
i
c
e
,
s
u
b
m
i
t
c
o
d
e
s
o
n
y
o
u
r
b
e
h
a
l
f
,
o
r
k
e
e
p
y
o
u
r
s
e
c
r
e
t
.
T
h
e
r
e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