Skip to content

feat: show API key SHA256 hash instead of asterisk masking#56

Open
elifarley wants to merge 1 commit intofuergaosi233:mainfrom
CedarVerse:elifarley-show-secret-as-hash
Open

feat: show API key SHA256 hash instead of asterisk masking#56
elifarley wants to merge 1 commit intofuergaosi233:mainfrom
CedarVerse:elifarley-show-secret-as-hash

Conversation

@elifarley
Copy link

@elifarley elifarley commented Dec 8, 2025

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 openai_api_key_hash helper function
  • Update config display to show: sha256:<hash_prefix>...

@elifarley elifarley force-pushed the elifarley-show-secret-as-hash branch from 8efc85b to 3003ffc Compare December 8, 2025 19:48
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 openai_api_key_hash helper property
- Update config display to show: API_KEY=sha256:<hash_prefix>...
@elifarley elifarley force-pushed the elifarley-show-secret-as-hash branch from 3003ffc to 2f3857d Compare December 8, 2025 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant