FileCryptor
A Python library for encrypting files to hexadecimal format and decrypting them back using a secret key.
Features
- Encrypt any file to hexadecimal format
- Decrypt hex files back to original format
- Uses SHA-256 key hashing for security
- Simple XOR encryption with key cycling
- Works with any file type
Installation
No installation required. Just include the src/file_cryptor folder in your project.
Usage
Basic Usage
from file_cryptor import encrypt_file, decrypt_file
# Encrypt a file
encrypt_file("document.txt", "encrypted.hex", "my_secret_key")
# Decrypt the file
decrypt_file("encrypted.hex", "restored.txt", "my_secret_key")
Metadata
Release files for filecryptor-hp 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| filecryptor_hp-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / filecryptor_hp-1.0.0-py3-none-any.whl
| Download URL | filecryptor_hp-1.0.0-py3-none-any.whl |
|---|---|
| Size | 2.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
28ba3b140d038565a351bdaf1d12d0b44057d5150f0c525f9250690ad3ea926f
|
|
BLAKE2b-256 checksum How to use checksums |
8724df7b7fb1f9e69322c3e66944047586c45dbb051e94c2ac1f5347b3c2a29f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|