To encrypt and decrypt message.
Morse, RSA and Base64 encryption/decryption is supported.
pip install -U sipher
usage: sipher [options]
optional arguments:
-h, --help show this help message and exit
-v, --version show version number and exit.
to encrypt/decrypt message:
data data to encrypt/decrypt
-a, --alg algorithm to use
-e, --encrypt to encrypt message
-d, --decrypt to decrypt message
-c, --copy to copy encrypted/decrypted message to clipboard (default : False)
-s, --store to store encrypted/decrypted message as text file (default : False)
-p, --path path to store encrypted/decrypted message
To encrypt/decrypt message using rsa.
from sipher import rsa
rsa.gen_keys()
privatekey, publickey = rsa.load_keys()
message = 'sipher'
signature = rsa.sign(message, privatekey)
citext = rsa.encrypt(message, publickey)
decrypted_message = rsa.decrypt(citext, privatekey)
rsa.verify(decrypted_message, signature, publickey)
To encrypt a text and copy it to clipboard.
$ sipher data --encrypt --copy --alg base64
Encrypted message copied to clipboard.
To decrypt a cipher and store it as text file.
$ sipher "-.. .- - .- " --decrypt --store --alg morse
Decrypted message stored in 'path'.
If you encounter any problems, please file an issue along with a detailed description.