mirror of
https://github.com/luxfi/safe-ios.git
synced 2026-10-30 15:19:20 +00:00
13 lines
204 B
Bash
Executable File
13 lines
204 B
Bash
Executable File
#! /usr/bin/env bash
|
|
set -e +o pipefail
|
|
|
|
KEY="$1"
|
|
INPUT="$2"
|
|
OUTPUT="$3"
|
|
|
|
TEMP="${OUTPUT}.tar"
|
|
|
|
tar cvf "${TEMP}" "${INPUT}"
|
|
openssl aes-256-cbc -k "${KEY}" -in "${TEMP}" -out "${OUTPUT}"
|
|
rm -f "${TEMP}"
|