Skip to main content

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.

Metadata

Release files for sipher 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sipher 1.0.3
File Size Uploaded
sipher-1.0.3.tar.gz 10.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sipher 1.0.3
File Interpreter ABI Platform
sipher-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 22.2 kB

Release files / sipher-1.0.3.tar.gz

Download URL sipher-1.0.3.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
43781e15877f695121b7c3d0bbbb60b62c5070104ad669525989a2dd2960aa1e
BLAKE2b-256 checksum
How to use checksums
0e18edaed44be553e0f4923c894ad24a72ae6fcd54d2b6c32edd9a06ca3600b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.10

Release files / sipher-1.0.3-py3-none-any.whl

Download URL sipher-1.0.3-py3-none-any.whl
Size 11.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
50b80113c50423b4b4776b445af42cf61107825412cc0a0b97f2670c67f611c2
BLAKE2b-256 checksum
How to use checksums
cfc65d60d325685ae85fabc992f3d9fd58a97ca9208b00594de9343a3d87f9af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.10

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page