From 6aa0b75c5cae87d678797fa1416f67680974e7ba Mon Sep 17 00:00:00 2001 From: Christoph Hummer Date: Mon, 18 Mar 2024 22:55:41 +0100 Subject: [PATCH] Create urlencode --- urlencode | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 urlencode diff --git a/urlencode b/urlencode new file mode 100644 index 0000000..10d40b0 --- /dev/null +++ b/urlencode @@ -0,0 +1,14 @@ +#!/bin/bash +if [ $# -gt 0 ]; then + echo "Please use urlencode without the password" + echo "Usage: urlencode" + exit 1 +fi +echo "Please enter the password to encode:" +read eingabe +ENCODED_STRING="$(echo -n "$eingabe" | jq -sRr @uri)" +clear +echo "Your URL encoded password is:" +echo +echo "${ENCODED_STRING}" +echo