SecuriPy
SecuriPy is a Python library that provides a set of functions for encrypting and decrypting human-readable file formats into undefined non-readable files. It offers a simple yet powerful way to protect sensitive information from unauthorized access.
Installation
To use SecuriPy, you will need Python 3.x installed on your system. You can install SecuriPy using pip, the Python package installer, by executing the following command:
pip install SecuriPy
Usage
Import the classes you need:
from SecuriPy import Text, Image, File, DNA
Text — Password-based obfuscation
Note: The
Textclass uses a simple additive cipher. It provides obfuscation only and is not cryptographically secure. For strong encryption useFileorImage.
from SecuriPy import Text
encrypted = Text.encrypt("Hello World", password="mypassword")
original = Text.decrypt(encrypted, password="mypassword")
print(original) # Hello World
Image — Fernet (AES-128) image encryption
from SecuriPy import Image
Image.Key() # generates key.txt
Image.Encrypt("key.txt", "photo.png") # encrypts photo.png in-place
Image.Decrypt("key.txt", "photo.png") # decrypts back to original
# Encrypt / decrypt everything in the current directory
Image.EncryptAll("key.txt")
Image.DecryptAll("key.txt")
File — Fernet (AES-128) file encryption
from SecuriPy import File
File.Key() # generates key.txt
File.Encrypt("key.txt", "document.pdf") # encrypts in-place
File.Decrypt("key.txt", "document.pdf") # decrypts back to original
# Encrypt / decrypt everything in the current directory
File.EncryptAll("key.txt")
File.DecryptAll("key.txt")
DNA — DNA base-sequence encoding
Encodes text as a sequence of DNA bases (A, T, C, G). This is an encoding scheme, not a cryptographic cipher.
from SecuriPy import DNA
encoded = DNA.encrypt("Hello") # e.g. 'TACGTATGTA...'
original = DNA.decrypt(encoded) # 'Hello'
Security Considerations
- Use a strong and unique key for each encryption operation to enhance security.
- Always store your
key.txtsecurely — losing it means losing access to your encrypted data. ImageandFileclasses use Fernet symmetric encryption (AES-128-CBC + HMAC-SHA256).- The
Textclass is a lightweight obfuscation cipher only.
Contributing
Contributions to SecuriPy are welcome! If you find any issues or have suggestions for improvement, please create a GitHub issue or submit a pull request.
License
SecuriPy is released under the MIT License. See the LICENSE file for more details.
Contact
If you have any questions, suggestions, or feedback, you can reach out to the project maintainers at programmer.tiak@gmail.com.
Happy encrypting with SecuriPy!
Metadata
Release files for securipy 3.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 | |
|---|---|---|---|---|
| securipy-3.0.3.tar.gz | 5.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| securipy-3.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.0 kB
Release files / securipy-3.0.3.tar.gz
| Download URL | securipy-3.0.3.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2933ef9b59ea6d0961c46ca10019f72134420312963efcce71cbca0ce5e7d2fc
|
|
BLAKE2b-256 checksum How to use checksums |
204aad22e6bb6f46c40b3b2f885a87063627d7dbd2fbd816b3df32a049fc0388
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.0
|
Release files / securipy-3.0.3-py3-none-any.whl
| Download URL | securipy-3.0.3-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ce11222435f6c124892ea45809749d6f858dab77f1c4e27f71a5b59b57522434
|
|
BLAKE2b-256 checksum How to use checksums |
3d7070bf724e42dfeef27053044bb6ba217128de1c4c252c39cd906f6d49fc38
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.0
|
Security for securipy 3.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.