Chiffrement de texte en RC4



Chiffrement
On concatene le hash (md5) du message en clair à celui-ci
On chiffre l'ensemble en utilisant RC4
On encode le message obtenu en Base64

Déchiffrement
On décode le message de l'encodage en Base64
On déchiffre le message ainsi obtenu
On compare le hash du message obtenu (sans les 32 derniers caractères) au hash qu'il contient (les 32 derniers caractères)
Si ils sont égaux, on affiche le message obtenu, sinon un message d'erreur

Sources
Les sources seront prochainement disponibles sous licence GNU GPL, en attendant vous pourrez trouver ici la dernière version en cours de réalisation

Copyright
(c)2002 Antoine CANONNE <antoine.canonne@free.fr>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.