SimpleCipher
A simple cipher.
Install
python3 -m pip install simplecipher
Dependencies
In terms of dependencies, there are no dependencies.
Usage
Supported ciphers:
- Caesar cipher
- Vigenere cipher
- Custom cipher
Example:
from simplecipher import simplecipher as sc
message = 'Hello, World!'
offset = 10
encrypted_message = sc.CaesarCipher.encrypt(message, offset=offset)
decrypted_message = sc.CaesarCipher.decrypt(encrypted_message, offset=offset)
key = 'vigenere_key'
encrypted_message = sc.VigenereCipher.encrypt(message, key=key)
decrypted_message = sc.VigenereCipher.decrypt(encrypted_message, key=key)
cipher = sc.SimpleCipher()
replacement = '?' # replacement for unsupported characters
encrypted_message = cipher.encrypt(message, replacement=replacement)
decrypted_message = cipher.decrypt(encrypted_message)
Metadata
Release files for simplecipher 0.2.2
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 | |
|---|---|---|---|---|
| simplecipher-0.2.2.tar.gz | 6.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| simplecipher-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.1 kB
Release files / simplecipher-0.2.2.tar.gz
| Download URL | simplecipher-0.2.2.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ca9f8ea2ad8caba314141f8d4c3648df1eeef5f68b7d95f1bd1c286725b7dcba
|
|
BLAKE2b-256 checksum How to use checksums |
d980b122bc9f013441f46bf56279f8d97bdf4a44dcab13b4e628f06086dd5ff5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/3.7.0 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.9
|
Release files / simplecipher-0.2.2-py3-none-any.whl
| Download URL | simplecipher-0.2.2-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dfcfbcd5b31f8cb653127c2d321866e0e48ad7481babd331d873a94de27d8902
|
|
BLAKE2b-256 checksum How to use checksums |
4f9fb5c2f28e203ac4ad916cd573173b068919e2174cea8fd15fef6ad38378d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/3.7.0 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.9
|
Security for simplecipher 0.2.2
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.