Commit 8efc85b
committed
feat: show API key SHA256 hash instead of asterisk masking
Replace the generic asterisk masking with a deterministic SHA256 hash
prefix to allow developers to verify which API key is being used while
maintaining security.
Changes:
- Add hashlib import for SHA256 support
- Create get_api_key_hash() helper function
- Update config display to show: API_KEY=sha256:<hash_prefix>...1 parent 9cc2e8c commit 8efc85b
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
72 | 79 | | |
73 | 80 | | |
74 | | - | |
| 81 | + | |
75 | 82 | | |
76 | 83 | | |
77 | 84 | | |
0 commit comments