Never been to CodeSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

1 total

Unlock directory (decrypt)

#!/bin/bash
log=$(find . -name *.des3)
PS3='Unlock: '
select selection in $log;do
if [ $selection ];then
desc3file=$selection
break
else
echo "Invalid selection"
fi
done
echo "Opening: " $desc3file
echo -n "Enter archive password: "
read -s password
echo -e "\nWorking"
cat $desc3file | openssl des3 -d -k $password | tar x
rm $desc3file
1 total