TokenUnlockPassCodec

Stable binary encoding for encrypted TokenUnlockPass storage.

Platform secure storage encrypts the resulting bytes. Keeping this codec in commonMain guarantees Android and iOS store the same credential format.

Functions

Link copied to clipboard

Decodes a stored pass and rejects malformed lengths and trailing bytes.

Link copied to clipboard

Encodes the pass into a versioned binary payload before secure storage encrypts it.