Wednesday, January 26, 2011

bash

#!/bin/bash

#Auther : yonten
#date :26.01.2011
#purpose :to Decript the file

#echo -n -e "This Program will Decript your Encripted file to human readable form \n"

#echo "Username:"
#read username
#if [ "$username" == "tamdin | karma | yonten | gompo | donam " ]; then
echo -n "Enter the name of the file you want to decript:"
read filename
# continue

openssl enc -bf -in $filename.enc -out $filename.dec -d -a

echo -n -e "______________________________________________________________\n\n\n"


cat $filename.dec

echo -n -e "______________________________________________________________\n\n\n"


rm $filename.dec
echo -n -e "######################Airjaldi.net########################

No comments:

Post a Comment