diff --git a/scripts/encode.sh b/scripts/encode.sh new file mode 100644 index 0000000..3208480 --- /dev/null +++ b/scripts/encode.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +if [ -f .env ]; then + while IFS='=' read -r key value; do + if [[ $key != \#* ]] && [[ ! -z "$key" ]]; then + echo "SECRET_$key=$(echo -n "$value" | base64)"; + fi + done < .env > .env_encoded +else + echo "Error: .env file not found." +fi