summaryrefslogtreecommitdiff
path: root/attic/decrypt
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-04-01 11:07:44 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-04-01 11:07:44 -0700
commit0e26917c7217f420f04995a476e845172c4c38b8 (patch)
treeb880cbdae18db42630ec9b6ceaa4e2712a5e4cdb /attic/decrypt
parent3df60995e186a4284332474ed364e7643aff6f74 (diff)
downloadinfinitytier-0e26917c7217f420f04995a476e845172c4c38b8.tar.gz
infinitytier-0e26917c7217f420f04995a476e845172c4c38b8.zip
Tweak metric and clean out attic a bit.
Diffstat (limited to 'attic/decrypt')
-rwxr-xr-xattic/decrypt32
1 files changed, 0 insertions, 32 deletions
diff --git a/attic/decrypt b/attic/decrypt
deleted file mode 100755
index 5af3acd4..00000000
--- a/attic/decrypt
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/bash
-
-export PATH=/bin:/usr/bin
-
-if [ ! -e /usr/bin/openssl ]; then
- echo $0: requires /usr/bin/openssl, please install openssl tools
- exit 1
-fi
-
-if [ "$#" -lt 1 ]; then
- echo $0: Usage: $0 '<input>' '[output]'
- exit 1
-fi
-
-if [ ! -r "$1" ]; then
- echo $0: $1 does not exist or is not readable.
- exit 1
-fi
-
-outpath=`echo "$1" | sed 's/[.]aes$//'`
-if [ "$#" -ge 2 ]; then
- outpath="$2"
-fi
-
-if [ -f "$outpath" ]; then
- echo $0: $outpath already exists, delete or rename first.
- exit 1
-fi
-
-openssl aes-256-cbc -d -salt -in "$1" -out "$outpath"
-
-echo $0: wrote "$outpath"