Skip to main content

To encrypt and decrypt message.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sipher-1.0.3.tar.gz (10.4 kB view hashes)

Uploaded Source

Built Distribution

sipher-1.0.3-py3-none-any.whl (11.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page