fix: correct set-password docstring (scrypt, not bcrypt) #4

Merged
alee merged 1 commits from fix/audit-followups into main 2026-04-05 16:53:23 +00:00
Owner

The set_password_cmd docstring and inline comment claimed bcrypt / SHA-256, but the implementation actually uses scrypt via cryptography.hazmat.primitives.kdf.scrypt. Correct the docstring, drop the misleading comment, and remove the now-unused hashlib import.

No behavior change — comment/doc correction only. The function already called Scrypt(...).derive(...); only the surrounding prose lied.

Related honesty-pass follow-ups filed separately: #1, #2, #3.

The `set_password_cmd` docstring and inline comment claimed bcrypt / SHA-256, but the implementation actually uses scrypt via `cryptography.hazmat.primitives.kdf.scrypt`. Correct the docstring, drop the misleading comment, and remove the now-unused `hashlib` import. No behavior change — comment/doc correction only. The function already called `Scrypt(...).derive(...)`; only the surrounding prose lied. Related honesty-pass follow-ups filed separately: #1, #2, #3.
alee added 1 commit 2026-04-05 14:51:20 +00:00
The set_password_cmd docstring and inline comment claimed bcrypt /
SHA-256, but the implementation actually uses scrypt via
cryptography.hazmat.primitives.kdf.scrypt. Correct the docstring,
drop the misleading comment, and remove the now-unused hashlib import.

No behavior change.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Author
Owner

Simple docstring and comment correction.

Simple docstring and comment correction.
alee merged commit 17bd403217 into main 2026-04-05 16:53:23 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: alee/vigilar#4