CustomCrypto
Description
This package implements tools to build your custom cipher.
Requirements
This package require :
- python3
- python3 Standard Library
Installation
pip install CustomCrypto
Usages
Python script
from CustomCrypto import CustomCrypto, xor, viginere, decipher_viginere
import string
crypto = CustomCrypto(xor)
cipher = crypto.dynamic_key_1(b'00', [ord('0')])
decipher = bytes(crypto.reverse_dynamic_key_1(cipher, [ord('0')]))
cipher = CustomCrypto(viginere, string.ascii_uppercase, alphabet_length=26).dynamic_key_2('ACCA', ('C', 'A'))
decipher = CustomCrypto(decipher_viginere, string.ascii_uppercase, alphabet_length=26).dynamic_key_2('CCCC', ('C', 'A'))
crypto = CustomCrypto(None)
shuffle_data = crypto.shuffle('ABCDEFGH', 4)
data = crypto.unshuffle(shuffle_data, 4)
shuffle_data = crypto.reverse('ABCD')
data = crypto.reverse(shuffle_data)
modified_data = crypto.shift(b'\xff\x00\xf0\xa5\xaa')
data = crypto.shift(modified_data)
lines = crypto.group('0' * 40, '0')
lines = "\n".join(" ".join("".join(chars) for chars in words) for words in lines)
print(lines)
Links
Licence
Licensed under the GPL, version 3.
Metadata
Release files for CustomCrypto 0.0.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 | Actions |
|---|---|---|---|---|
| CustomCrypto-0.0.2.tar.gz | 19.3 kB | Without provenance | Details for CustomCrypto-0.0.2.tar.gz |
Release files / CustomCrypto-0.0.2.tar.gz
| Download URL | CustomCrypto-0.0.2.tar.gz |
|---|---|
| Size | 19.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1f5c32e0166b3c26fd626d3d6745c7c615fb32adf8403ef013f26caf88a6c416
|
|
BLAKE2b-256 checksum How to use checksums |
8f7aae3eb73d551a52ad087f308c7ea093cd403575a22b68f7dbd6473137d19a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/58.2.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.7
|
Security for CustomCrypto 0.0.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.