An implementation of the RSA algorithm according to PKCS#1
This implementation use the well known library Gnu Multiple Precision (GMP).
Three possibilities:
-
Generate a key-pair
./rsa --generate-key-pairIf the .rsa directory doesn't exists, it will create it and generate 2 files in it: rsa.priv and rsa.pub
-
Encrypt a file
./rsa --encrypt fileIt requires that the
--generate-key-pairhas been used before. Otherwise, will raise an error. -
Decrypt a file
./rsa --decrypt fileIt requires that the
--generate-key-pairhas been used before. Otherwise, will raise an error.