Skip to main content

PyPi

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 Text class uses a simple additive cipher. It provides obfuscation only and is not cryptographically secure. For strong encryption use File or Image.

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.txt securely — losing it means losing access to your encrypted data.
  • Image and File classes use Fernet symmetric encryption (AES-128-CBC + HMAC-SHA256).
  • The Text class 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

securipy-3.0.3.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

securipy-3.0.3-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

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

Hashes for securipy-3.0.3.tar.gz
Algorithm Hash digest
SHA256 2933ef9b59ea6d0961c46ca10019f72134420312963efcce71cbca0ce5e7d2fc
MD5 d68e542246411bfd97844b7a7e1bfcd3
BLAKE2b-256 204aad22e6bb6f46c40b3b2f885a87063627d7dbd2fbd816b3df32a049fc0388

See more details on using hashes here.

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

Hashes for securipy-3.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ce11222435f6c124892ea45809749d6f858dab77f1c4e27f71a5b59b57522434
MD5 31acbacd36c1136e8966cd7b6c8d7be6
BLAKE2b-256 3d7070bf724e42dfeef27053044bb6ba217128de1c4c252c39cd906f6d49fc38

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

3.0.3 This release

2 files

3.0.2

2 files

3.0.1

2 files

2.1.0

2 files

2.0.4

2 files

2.0.3

2 files

2.0.2

2 files

2.0.0

2 files

1.1.4

2 files

1.1.2

2 files

1.1.1

2 files

1.1.0

2 files

1.0.8

2 files

1.0.7

2 files

1.0.6

2 files

1.0.5

2 files

1.0.3

2 files

1.0.2

2 files

1.0.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page