Subject: Re: seeking advice on encrypting file systems
To: None <netbsd-users@NetBSD.org>
From: Christian Biere <christianbiere@gmx.de>
List: netbsd-users
Date: 02/14/2004 09:35:18
--0F1p//8PRICkK4MW
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Stefan Schumacher wrote:
> usage: ./dir-enc.sh {e,d} encrypted_data/ password

Putting the password on the command-line is a very bad idea.

> 	for i in $2/*
> 	do
> 		openssl aes-256-ecb -in $i -out $i.enc -e -salt -k $3
> 		rm -Prf $i
> 	done
> 	echo "files encrypted and originals removed"

Removed? Probably. Encrypted? Well, that depends on certain circumstances.

--=20
Christian

--0F1p//8PRICkK4MW
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)

iD8DBQFALd3G0KQix3oyIMcRApHjAKC/9sgl6PPcsu+B+xJvEBcVFPgJfwCdE1wi
oXOHMVzD4y6/wz4IvYyJ3Lw=
=eota
-----END PGP SIGNATURE-----

--0F1p//8PRICkK4MW--