Sipher
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sipher-1.0.3.tar.gz | 10.4 kB | Without provenance | Details for sipher-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sipher-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for sipher-1.0.3-py3-none-any.whl |
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
|
Security for sipher 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.