From 3f4162ad5701f66d6f2e953423a1cc27c9acfb83 Mon Sep 17 00:00:00 2001 From: paula Date: Fri, 7 Jul 2023 12:13:08 +0200 Subject: [PATCH] adding an encryption experiment --- partial_enc/simulacro.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 partial_enc/simulacro.sh diff --git a/partial_enc/simulacro.sh b/partial_enc/simulacro.sh new file mode 100755 index 0000000..84e76ef --- /dev/null +++ b/partial_enc/simulacro.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +#position in where to change the contents +pos=$1 + +#binary file +bfile=$2 + +xxd $bfile > tmp + +test=$(head -n $pos tmp | tail -1) +echo "$test" + +rm tmp + -- 2.45.2