[wellylug] encryption question

jfouhy at paradise.net.nz jfouhy at paradise.net.nz
Sat Aug 28 22:09:36 NZST 2004


Quoting Mark Signal <mark at databackup.co.nz>:

> Progress... sort of
> 
> I can get mcrypt working with ...
> 
> for file in `find $1 -type 'f' | grep -v *.cpt`;
>  	do
> 	cat $file | mcrypt -a blowfish -b -k $passwd > "$file.cpt"
> 	rm -f $file
> done
> 
> but it vomits on file and directory names with spaces in them

Maybe something like:

for file in `find $1 -type 'f' | grep -v *.cpt | sed 's/ /\\ /g'`;
 etc

?




More information about the wellylug mailing list