refactor: remove duplicated HEX and OCT digit constants (#841)
What changed, and why it matters
This commit removes two unused duplicate text strings that listed hexadecimal and octal digits from a login-related source file. There is no functional code change, no bug fix, and no security relevance visible in the diff.
No security action needed. Treat as routine code cleanup.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff deletes two module-level string constants, DIGITS_HEX and DIGITS_OCT, from src/krux/pages/login.py. The constants appear to be duplicates already defined elsewhere (per the commit title) and are not referenced anywhere in the shown code. No logic, input handling, cryptography, or authentication behavior is modified.
Changed components
src/krux/pages/login.pyInspect captured patch +0 / −3
diff --git a/src/krux/pages/login.py b/src/krux/pages/login.py
index 1112f3d..8bc7c7d 100644
--- a/src/krux/pages/login.py
+++ b/src/krux/pages/login.py
@@ -50,9 +50,6 @@ from ..key import (
from ..krux_settings import t
from ..kboard import kboard
-DIGITS_HEX = "0123456789ABCDEF"
-DIGITS_OCT = "01234567"
-
DOUBLE_MNEMONICS_MAX_TRIES = 200
MASK256 = (1 << 256) - 1
MASK128 = (1 << 128) - 1
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.