Skip to content

Commit 3726b29

Browse files
committed
Update README.md
1 parent 411e1d1 commit 3726b29

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

llms/extensions/credentials/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,18 @@ llms --auth github_auth
206206
llms --auth none
207207
```
208208

209+
## Password Storage
210+
211+
Passwords are never stored in plain text. Each password is hashed using **SHA-256**
212+
with a unique random salt:
213+
214+
1. A 16-byte random salt is generated via `secrets.token_hex(16)`
215+
2. The salt is prepended to the password and the combination is SHA-256 hashed
216+
3. The result is stored as `salt:hex_digest` in the `password_hash` field of `users.json`
217+
218+
Verification re-hashes the provided password with the stored salt and compares the
219+
result against the stored digest.
220+
209221
## Session Details
210222

211223
- Sessions are stored in memory and persisted to `~/.llms/credentials/sessions/`

0 commit comments

Comments
 (0)