# First convert the Tux to PPM with Gimp
# Then take the header apart
bmpFile="woman.bmp"
outFile="aes.bmp"
head -c 54 $bmpFile > $bmpFile.head  
tail -c +55 $bmpFile > $bmpFile.bin  
# Then encrypt with ECB (experiment with some different keys)
openssl enc -aes-128-ecb -nosalt -pass pass:"pass" -in $bmpFile.bin -out $bmpFile.enc  
# And finally put the result together and convert to some better format with Gimp
cat $bmpFile.head $bmpFile.enc > $outFile 
rm $bmpFile.head
rm $bmpFile.bin
rm $bmpFile.enc
