A password protection app for the Bruce JavaScript interpreter that when used as a startup app, this will password protect your device on boot, or it can be launched independently to lock your device.
Secure your Bruce device with password protection featuring anti-brute force protection and configurable security settings. The app uses the built-in keyboard interface for password/PIN entry and implements exponentially increasing timeouts to prevent unauthorised access attempts.
- Password/PIN Protection: Authentication prompt using on-screen keyboard with automatic PIN/password detection
- Configurable Timeout System: Customizable base timeout (5-120s) and maximum timeout (1-60 minutes)
- Exponential Backoff: Optional doubling timeout penalties after failed attempts
- Settings Menu: Built-in configuration interface for password changes and timeout settings
- Status Display: Battery level indicator and clock display
- Responsive Layout: Automatically adapts to different display sizes with scalable fonts
On first run, the app will prompt you to create a password. The app automatically detects if your password is numeric-only (PIN) and will present the appropriate keyboard interface for future logins.
Pres the Previous or Next button during the lock screen to access the settings menu (requires password authentication).
- Change Password: Update your current password/PIN
- Timeout Settings:
- Configure base timeout duration (5-120 seconds)
- Set maximum timeout duration (1-60 minutes)
- Enable/disable exponential backoff
Advanced users can also edit the configuration file directly:
- SD Card:
/scripts/Lock Device.json(if SD card is available) - LittleFS:
/scripts/Lock Device.json(LittleFS fallback)
- Copy
Lock Device.jsto your Bruce device's/scripts/directory - Navigate to Config menu
- Select Startup App
- Select JS Interpreter
- Select Lock Device to set this as the startup app
- When Bruce starts, the Lock Device app will launch and display the lock screen
- The status bar shows battery level and current time (when available)
- Press the SELECT key to open the password entry prompt
- The app automatically selects numeric or full keyboard based on your password format
- Enter the correct password to unlock and exit
- From the lock screen, hold the Previous or Next button to access settings
- Enter your password when prompted
- Navigate settings with Previous/Next buttons
- Press SELECT to choose an option
- Press ESC to exit settings mode
- SELECT: Open password input prompt
- Previous/Next: Access settings menu (requires authentication) and navigate settings menu
- ESC: Exit settings mode