We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 411e1d1 commit 3726b29Copy full SHA for 3726b29
1 file changed
llms/extensions/credentials/README.md
@@ -206,6 +206,18 @@ llms --auth github_auth
206
llms --auth none
207
```
208
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
221
## Session Details
222
223
- Sessions are stored in memory and persisted to `~/.llms/credentials/sessions/`
0 commit comments