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!
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file securipy-3.0.3.tar.gz.
File metadata
- Download URL: securipy-3.0.3.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2933ef9b59ea6d0961c46ca10019f72134420312963efcce71cbca0ce5e7d2fc
|
|
| MD5 |
d68e542246411bfd97844b7a7e1bfcd3
|
|
| BLAKE2b-256 |
204aad22e6bb6f46c40b3b2f885a87063627d7dbd2fbd816b3df32a049fc0388
|
File details
Details for the file securipy-3.0.3-py3-none-any.whl.
File metadata
- Download URL: securipy-3.0.3-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce11222435f6c124892ea45809749d6f858dab77f1c4e27f71a5b59b57522434
|
|
| MD5 |
31acbacd36c1136e8966cd7b6c8d7be6
|
|
| BLAKE2b-256 |
3d7070bf724e42dfeef27053044bb6ba217128de1c4c252c39cd906f6d49fc38
|