Daily Shaarli

All links of one day in a single page.

May 22, 2013

Encrypt & Decrypt Files from the Command Line with OpenSSL

Décrypter un fichier crypter par cle publique rsa avec cle privé
openssl rsautl -in fichier_chiffre -out fichier_clair -decrypt -inkey votre_cle_privee

et pour chiffré

openssl rsautl -in fichier_clair -out fichier_chiffre -encrypt \
-pubin -inkey cle_de_votre_ami