-
cleemy desu wayo authored832a56c6
README.md 1.19 KiB
noshow.sh
CAUTION
This Bash Script is a work in progress.
Do not use this if you cannot read and understand the source code.
I have only tested it with Firefox and Chromium.
What's this?
It generates a tiny single HTML file.
For things like access tokens and private keys, you can store them locally but not have them appear on the screen when you use them.
It is not for everyday use, but to help people realize that "ok, surely with something like this, the token does not appear on the display".
Usage
keyboard input:
$ ./noshow.sh --label='access token'
accepted label: access token
input something like token or key:
done.
STDIN:
$ grep '^wif=' key.txt | head -1 | sed -e 's/^wif="//' -e 's/"[^"]*$//' | ./noshow.sh --label=privkey1
accepted label: privkey1
(STDIN has been captured)
done.
TODO
- fix legacy style "document.execCommand('copy')"
- search something like "-webkit-text-security"
- decide on how to deal with multi-byte character
- decide on how to deal with multi-line data