sipher

To encrypt and decrypt message.


Keywords
sipher, cipher, morse, base64, rsa, encrypt, decrypt
License
Apache-2.0
Install
pip install sipher==1.0.3

Documentation

Sipher

PyPI Pypi - License PyPI - Python Version

To encrypt and decrypt message.

Morse, RSA and Base64 encryption/decryption is supported.

Installation

pip install -U sipher

Usage

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

Python Script

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)

Command Line

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'.

Issues:

If you encounter any problems, please file an issue along with a detailed description.