-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkrypton
More file actions
27 lines (25 loc) · 1.59 KB
/
krypton
File metadata and controls
27 lines (25 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
GREEN='\033[0;32m'
PURPLE='\033[0;35m'
NC='\033[0m'
BANNER=" ██ ▄█▀ ██▀███ ▓██ ██▓ ██▓███ ▄▄▄█████▓ ▒█████ ███▄ █
██▄█▒ ▓██ ▒ ██▒▒██ ██▒▓██░ ██▒▓ ██▒ ▓▒▒██▒ ██▒ ██ ▀█ █
▓███▄░ ▓██ ░▄█ ▒ ▒██ ██░▓██░ ██▓▒▒ ▓██░ ▒░▒██░ ██▒▓██ ▀█ ██▒
▓██ █▄ ▒██▀▀█▄ ░ ▐██▓░▒██▄█▓▒ ▒░ ▓██▓ ░ ▒██ ██░▓██▒ ▐▌██▒
▒██▒ █▄░██▓ ▒██▒ ░ ██▒▓░▒██▒ ░ ░ ▒██▒ ░ ░ ████▓▒░▒██░ ▓██░
▒ ▒▒ ▓▒░ ▒▓ ░▒▓░ ██▒▒▒ ▒▓▒░ ░ ░ ▒ ░░ ░ ▒░▒░▒░ ░ ▒░ ▒ ▒
░ ░▒ ▒░ ░▒ ░ ▒░▓██ ░▒░ ░▒ ░ ░ ░ ▒ ▒░ ░ ░░ ░ ▒░
░ ░░ ░ ░░ ░ ▒ ▒ ░░ ░░ ░ ░ ░ ░ ▒ ░ ░ ░
░ ░ ░ ░ ░ ░ ░ ░
░ ░ "
if [ $# -lt 3 ]
then
echo "${PURPLE}Usage: ./krypton \"PRiVATE_KEY\" \"DATA_PASSWORD\" \"DATA\"${NC}"
else
echo "${GREEN}$BANNER${NC}"
public_id=$(./app/gen_public_id "$1" | tr -d '\n')
./app/gpg "$2" "$3"
echo -n "${PURPLE}"
./app/send "$1" "$public_id"
echo -n "${NC}"
fi