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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file sipher-1.0.3.tar.gz.

File metadata

  • Download URL: sipher-1.0.3.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for sipher-1.0.3.tar.gz
Algorithm Hash digest
SHA256 43781e15877f695121b7c3d0bbbb60b62c5070104ad669525989a2dd2960aa1e
MD5 8077c3564448d85b4936f4d54b7199c6
BLAKE2b-256 0e18edaed44be553e0f4923c894ad24a72ae6fcd54d2b6c32edd9a06ca3600b5

See more details on using hashes here.

File details

Details for the file sipher-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: sipher-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for sipher-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 50b80113c50423b4b4776b445af42cf61107825412cc0a0b97f2670c67f611c2
MD5 3ff644411c5e9af6c860bd3a3ecabc44
BLAKE2b-256 cfc65d60d325685ae85fabc992f3d9fd58a97ca9208b00594de9343a3d87f9af

See more details on using hashes here.

Supported by

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