Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Green committed Nov 27, 2023
1 parent a82cd62 commit 45aee1e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# privacy-output-stream
A Common Lisp output stream that masks secret strings

`privacy-output-stream` is a character output stream that wraps other
streams, like `*standard-output*` and masks secrets from the output by
replacing them with a series of `*`.
`privacy-output-stream` is a privacy preserving character output
stream. It wraps other streams, like `*standard-output*`, and masks
secrets from the output by replacing them with a series of `*`.

For example, the following code:
```
Expand All @@ -20,9 +19,10 @@ Hello, my password is ********

```secrets``` is a list of secret values you want to mask in the final
output. They are processed in order, so I recommend that you sort
your secrets by length in case one is a substring of another.
your secrets by length (longest first) in case one is a substring of
another.

Note also, that `privacy-output-stream` only masks secrets that are
Note also that `privacy-output-stream` only masks secrets that are
presented in full as part of a string or sequence being written to the
stream. Secrets written in fragments (by character or substring) will
not be masked.
Expand Down

0 comments on commit 45aee1e

Please sign in to comment.