Texts that print as #<secret> (e.g. a password or a token) so that a log or a REPL doesn't show them.
The reader can't read #<secret>. So when you write a map with a secret to a file as EDN, it fails to read back rather than coming back without the secret. A debugger or a browser's console still shows the text, since it shows the fields of an object.
Texts that print as #<secret> (e.g. a password or a token) so that a log or a REPL doesn't show them. The reader can't read #<secret>. So when you write a map with a secret to a file as EDN, it fails to read back rather than coming back without the secret. A debugger or a browser's console still shows the text, since it shows the fields of an object.
(hidden? x)Whether x is a text hidden with hide.
Whether `x` is a text hidden with hide.
(hide s)The text s as a value that prints as #<secret>. Nil and a text that's
already hidden stay as they are. Two such values are equal when their
texts are.
The text `s` as a value that prints as #<secret>. Nil and a text that's already hidden stay as they are. Two such values are equal when their texts are.
(reveal x)The text hidden in x, or x itself when it isn't hidden, e.g. a
plain text.
The text hidden in `x`, or `x` itself when it isn't hidden, e.g. a plain text.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |