447 B
447 B
TP1
Ex1
- Avec convert ou magick ou magick convert on fait :
magick Tux.xvg Tux.ppm
- avec la commande head je prends les 3 premières lignes de Tux.ppm et les redirige vers header.txt
head -n 3 Tux.ppm >> header.txt
- Mettre tout le fichier ppm sauf les 3 premières lignes dans un fichier body.bin
tail +3 Tux.ppm >> body.bin
- Chiffrer avec openssl en AES-ECB le fichier .bin