PairingCode class
A one-time code that authorises a device join.
Nine digits, shown grouped (123 456 789). Entropy is deliberately low —
the PAKE makes an offline guess impossible and limits an online attacker to
one try per exchange, and the sponsor caps the tries per code.
Constructors
- PairingCode.generate()
-
Generates a fresh random code.
factory
- PairingCode.parse(String input)
-
Parses user input, ignoring spaces, dashes, and other separators.
factory
Properties
- digits → String
-
The bare nine-digit string.
final
- display → String
-
The grouped form for display:
123 456 789.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
secretBytes
→ List<
int> -
The bytes fed to the PAKE as the shared secret.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Redacted: the code is a secret. Read display deliberately for the
pairing UI; a stray log of the object must not leak it.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited