A Python package for securely wiping files or folders.
Project description
securewipe 3.0.0
securewipeis a Python package for securely wiping files or folders by overwriting them with random data. It also provides a command-line interface (CLI) for easy usage.- You can rely on Securewipe to overwrite the data using various patterns, ensuring it is virtually impossible to recover.
Benefits
- Security: Ensures sensitive files or directories are securely wiped by overwriting them with random data, making recovery impossible.
- Ease of Use: Provides a straightforward CLI interface and Python API for integrating secure file wiping into applications and scripts.
- Customization: Allows customization through Python scripts for specific file or directory wiping requirements.
Installation
You can install securewipe via pip:
pip install securewipe
Usage
Command-Line Interface (CLI)
Overwrite a specific file
To overwrite a specific file with random data:
securewipe --self-destruct /path/to/file.txt
Overwrite all files in a directory
To overwrite all files within a directory with random data:
securewipe --self-destruct /path/to/folder/
Python Code Examples
Self-destruct current script
from securewipe import replace_random
try:
replace_random(__file__)
print("Self-destructed successfully.")
except Exception as e:
print(f"Error: {e}")
Overwrite a specific file
from securewipe import replace_random
file_path = '/path/to/file.txt'
try:
replace_random(file_path)
print(f"Successfully overwritten: {file_path}")
except Exception as e:
print(f"Error: {e}")
Overwrite all files in a directory
import os
from securewipe import replace_random
folder_path = '/path/to/folder/'
try:
for file_name in os.listdir(folder_path):
file_path = os.path.join(folder_path, file_name)
if os.path.isfile(file_path):
replace_random(file_path)
print(f"Successfully overwritten: {file_path}")
except Exception as e:
print(f"Error: {e}")
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgements
Thank you for using securewipe! If you find it useful, please consider starring the repository.
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 securewipe-3.0.0.tar.gz.
File metadata
- Download URL: securewipe-3.0.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbfa5eaec94bd9ec85d1b0d3183d7cb8a472004f80fc568b3b4a3214a07a0b0f
|
|
| MD5 |
738e88e50bee756e57ebb68ec0eb0429
|
|
| BLAKE2b-256 |
5e0b3c20dc630dc130d3a1b3d756c989791c3516dd91c982b28ace1765cf0263
|
File details
Details for the file securewipe-3.0.0-py3-none-any.whl.
File metadata
- Download URL: securewipe-3.0.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7e069b34bdbd7ea1178138a910322919a951db159fb9ae110578b432c89c2e6
|
|
| MD5 |
1aef788d7fa2b2488551218982ca6ad9
|
|
| BLAKE2b-256 |
b1929469b633c2e0f38a1be858d1985358146ad5c98ea1814aa0db5ea88969bf
|