Expand description
Screen Lock
Provides a fullscreen lock screen with password authentication. Triggered via Ctrl+Alt+L or idle timeout. Renders a dark gradient background with a padlock icon, username, and dot-masked password field. Integrates with the security/auth module for credential verification.
All rendering uses integer math only (no floating point). Text is
drawn via crate::graphics::font8x16::glyph() into a u32 pixel
buffer (0xAARRGGBB native-endian).
Structs§
- Screen
Locker - Fullscreen lock screen with password authentication.
Enums§
- Lock
Action - Action returned from
handle_keyto the caller. - Lock
State - Current state of the screen locker.
Functions§
- djb2_
hash - DJB2 hash function for simple string hashing.
- format_
lockout_ time - Convert remaining lockout ticks to whole seconds (rounded up).