version release 2.1.1
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
###############################################################################
|
||||
# Copyright 2017 Justin Keller
|
||||
# Copyright 2019 Justin Keller
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
set -eo pipefail; [[ $TRACE ]] && set -x
|
||||
|
||||
readonly VERSION="2.1.0"
|
||||
readonly VERSION="2.1.1"
|
||||
readonly OPENSSL_CIPHER_TYPE="aes-256-cbc"
|
||||
|
||||
cryptr_version() {
|
||||
@@ -45,7 +45,7 @@ cryptr_encrypt() {
|
||||
fi
|
||||
|
||||
if [[ ! -z "${CRYPTR_PASSWORD}" ]]; then
|
||||
echo "Using environment variable CRYPTR_PASSWORD for the password"
|
||||
echo "[notice] using environment variable CRYPTR_PASSWORD for the password"
|
||||
openssl $OPENSSL_CIPHER_TYPE -salt -in "$_file" -out "$_file".aes -pass env:CRYPTR_PASSWORD
|
||||
else
|
||||
openssl $OPENSSL_CIPHER_TYPE -salt -in "$_file" -out "$_file".aes
|
||||
@@ -60,7 +60,7 @@ local _file="$1"
|
||||
fi
|
||||
|
||||
if [[ ! -z "${CRYPTR_PASSWORD}" ]]; then
|
||||
echo "Using environment variable CRYPTR_PASSWORD for the password"
|
||||
echo "[notice] using environment variable CRYPTR_PASSWORD for the password"
|
||||
openssl $OPENSSL_CIPHER_TYPE -d -salt -in "$_file" -out "${_file%\.aes}" -pass env:CRYPTR_PASSWORD
|
||||
else
|
||||
openssl $OPENSSL_CIPHER_TYPE -d -salt -in "$_file" -out "${_file%\.aes}"
|
||||
|
||||
Reference in New Issue
Block a user