#!/bin/bash # crypt.sh # source: coyotus@2012 http://www.linuxtrack.com/t660-crypt-sh.htm echo "choisissez crypt pour créer le message ou decrypt pour décrypter le message" read choix if test $choix == 'crypt' then read message echo $message | sed -e "y/abcdefghijklmnopqrstuvwxyz/azertyuiopqsdfghjklmwxcvbn/" elif test $choix == 'decrypt' then read message echo $message | sed -e "y/azertyuiopqsdfghjklmwxcvbn/abcdefghijklmnopqrstuvwxyz/" else echo "quit" fi