text/peek
- 578 bytes
- Python
- View raw
1#!/usr/bin/env python3
2"""
3This is a tiny script I can use to preview secrets on the command line.
5It prints the beginning and end of the secret, but not the whole thing --
6this avoids printing secrets in plaintext.
8 $ echo "$FLICKR_API_KEY" | peek
9 ae8…f3a
11"""