fn pin_length(pin: &str) -> u32
Number of characters in pin, stored unencrypted so a lock screen can read it while locked, e.g. to try the PIN as soon as that many characters are typed.
pin