Crates.io | secky |
lib.rs | secky |
version | 0.1.0 |
source | src |
created_at | 2018-09-25 04:10:17.13779 |
updated_at | 2018-09-25 04:10:17.13779 |
description | Help keying in secrets into file or piped programs |
homepage | |
repository | https://github.com/guangie88/secky |
max_upload_size | |
id | 86423 |
size | 13,014 |
SECrets KeYing Rust program to help keying in secrets into file or piped programs.
The program aims to prevent secrets from being accidentally keyed in shell directly for shell history, and also prevent mistakes with the whitespaces being accidentally introduced at the end of the file.
The program doesn't allow echoing into TTY for stdout
unless -f
is set.
Press CTRL-D to end the text input. Auto-trimming is performed unless trim flags are set.
Run secky --help
for more program argument details.
cargo install secky
curl -sSf https://raw.githubusercontent.com/guangie88/secky/master/install-linux.sh | sudo sh
stdout
Command:
secky | cat
Input entry:
hello
(CTRL-D)
Echo (no newline at the end):
hello
Command:
secky -f
Input entry:
hello
(CTRL-D)
Echo (no newline at the end):
hello
Command:
secky > secret.txt
Input entry:
hello
(CTRL-D)
Check (no newline at the end):
cat secret.txt
hello
Command:
secky | md5sum
Input entry:
hello
(CTRL-D)
Echo:
5d41402abc4b2a76b9719d911017c592 -
Check:
echo -n "hello" | md5sum
5d41402abc4b2a76b9719d911017c592 -