A tool to encrypt file or folder by using file as key.
Project description
Safenc
Introduction
Safenc is a simple command-line tool to encrypt your data. Whether it's a file, folder or just text it can be encrypted using key that can be Any File (photo, video, pdf, etc) or password and unless someone has that password or specific file that was used as key to encrypt, they can't decrypt the original data.
Installation
Install directly via pip (virtual enviroment reccomended):
pip install safenc
then run it using
safenc [options]
for manual clone this repo https://github.com/8oruz/safenc and add addition package cryptography using pip and run safenc.py
Options
--input file-pathor-i file-pathto specify file path to encrypt and if input is text use-i "@text"--key key-pathor-k key-pathto specify path of file to be used as key. It could be any file png, pdf, doc etc, if to use password can use-k "#password"--output output-pathor-o output-pathto give output path that will be used to store encrypted data if encryption and decrypted data if decrypted if not given output will print in terminal.--decryptor-dTo specify the task as decryption without it there will be only encryption.--base64or-bif wanted encryption output in base64 format and in decryption requried if encrypted in base64.
Usage Examples
Encrypting a file using image as key
safenc -i input-file -k /path/of/image.png -o encrypted-file
Decrypting same file
safenc --decrypt -i encrypted-file -k /path/to/image.png -o original-file
Encrypting a Folder
safenc -i /path/to/folder -k key-file.pdf -o encrypted-file
Decrypting same folder
safenc -d -i encrypted-file -k key-file.pdf -o /path/to/result
Encrypting a file with password
safenc -i input-file -k "#password" -o output-path
Encrypting text with password and print result as base64
safenc -i "@any text" -k "#password" --base64
Encrypting a file with password and save as base64
safenc -i file-path -k "#password" --base64 -o output
Decryption of same file
safenc --decrypt -i encrypted-file -k "#password" --base64 -o original-file
Project details
Release history Release notifications | RSS feed
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 safenc-1.0.0.tar.gz.
File metadata
- Download URL: safenc-1.0.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5b37e1211a7a18c093d0a759cfaf80e524bef1b90a08f97668da3e39eaefb33
|
|
| MD5 |
2304ff2b103b27252800b51cf7775322
|
|
| BLAKE2b-256 |
489d2fe1f7ea31a77969e7d27d32fb3a559e3bc92f84bca54803146f3132cbc0
|
File details
Details for the file safenc-1.0.0-py3-none-any.whl.
File metadata
- Download URL: safenc-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efd9b0973574aa3ad22876cd437062f64e99332f86cdebcad0e71575d19251cf
|
|
| MD5 |
acf013f3053014b427f84d4a73110abe
|
|
| BLAKE2b-256 |
1096b3f266a15fef97c60b3d5147f3500c2e7022be7af2fe4e4bd166d97f4299
|