feature/notty: non-TTY handling + stdin read #1

Merged
sezieru merged 4 commits from feature/notty into main 2025-10-10 11:10:57 +00:00
Owner
  • Refuse interactive prompt when stdin isn't a TTY.
  • Support -k - to read passphrase from stdin (newline trimmed).
  • Size stdin buffer to CRYPT_MAX_PASSPHRASE_SIZE to match struct crypt_data limits.
  • Add copymem() demonstration (standards-compliant) used in stdin path.
  • Document -k - in usage().
  • Add DEBUG flag value(4) for key info.
  • Heavily commented for educational purposes.
- Refuse interactive prompt when stdin isn't a TTY. - Support `-k -` to read passphrase from stdin (newline trimmed). - Size stdin buffer to `CRYPT_MAX_PASSPHRASE_SIZE` to match `struct crypt_data` limits. - Add `copymem()` demonstration (standards-compliant) used in stdin path. - Document `-k -` in `usage()`. - Add DEBUG flag value(4) for key info. - Heavily commented for educational purposes.
- document non-TTY handling
- read from stdin
- CRYPT_MAX_PASSPHRASE_SIZE cap
- usage excerpt
sezieru self-assigned this 2025-10-10 11:10:01 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: fosster/rexcrypt#1
No description provided.