shredi 0.0.17
Console utility for destroying files. Secure file overwriting, deletion, and destruction, both in manual and automatic modes, *without the possibility of recovery.
License: BSD-3-Clause
Requires Python: >=3.6
Keywords: shred,shredi,shred files,kali linux shred,termux shred files,mycleaner,smartcleaner,destroying files,shred kali,shred linux

# shredi

***
![GitHub top language](https://img.shields.io/github/languages/top/smartlegion/shredi)
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/smartlegion/shredi)](https://github.com/smartlegion/shredi/)
[![GitHub](https://img.shields.io/github/license/smartlegion/shredi?style=flat-square)](https://github.com/smartlegion/shredi/blob/master/LICENSE)
[![PyPI](https://img.shields.io/pypi/v/shredi)](https://pypi.org/project/shredi)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/shredi?label=pypi%20downloads)](https://pypi.org/project/shredi/)
[![GitHub Repo stars](https://img.shields.io/github/stars/smartlegion/shredi?style=social)](https://github.com/smartlegion/shredi/)
[![GitHub watchers](https://img.shields.io/github/watchers/smartlegion/shredi?style=social)](https://github.com/smartlegion/shredi/)
[![GitHub forks](https://img.shields.io/github/forks/smartlegion/shredi?style=social)](https://github.com/smartlegion/shredi/)

***

## Help the project financially:

[<img src="https://img.shields.io/liberapay/patrons/smartlegion.svg?logo=liberapay">](https://liberapay.com/smartlegion/donate)
[![PayPal](https://img.shields.io/static/v1?label=PayPal&message=donate&color=green)](https://paypal.me/smartlegioner)
[![Yandex](https://img.shields.io/static/v1?label=Yandex&message=donate&color=yellow)](https://yoomoney.ru/to/4100115206129186)
[![Visa](https://img.shields.io/static/v1?label=Visa&message=4048-0250-0089-5923&color=blue)](https://yoomoney.ru/to/4100115206129186)
[![Donate](https://img.shields.io/static/v1?label=SmartLegion&message=donate&color=blue)](https://smartlegion.github.io/donate/)

- __Donate__: [https://smartlegion.github.io/donate/](https://smartlegion.github.io/donate/)
- __Yandex Money__: [https://yoomoney.ru/to/4100115206129186](https://yoomoney.ru/to/4100115206129186)
- __PayPal__: [https://paypal.me/smartlegioner](https://paypal.me/smartlegioner)
- __LiberaPay__: [https://liberapay.com/smartlegion/donate](https://liberapay.com/smartlegion/donate)
- __Visa__: 4048 0250 0089 5923

***

## Short description:

___shredi___ - Cross-platform console utility for destroying files.  

Secure file overwriting, deletion, and destruction, 
both in manual and automatic modes, * without the possibility of recovery.

***

Author and developer: ___Aleksandr Suvorov (Smart Bear).___

[![mysmartlegion@ya.ru](https://img.shields.io/static/v1?label=email&message=mysmartlegion@ya.ru&color=blue)](mailto:mysmartlegion@ya.ru)
[![https://smartlegion.github.io/](https://img.shields.io/static/v1?label=Url:&message=smartlegion.github.io&color=blue)](https://smartlegion.github.io/)

***

## Supported:

- Linux: All.
- Windows: 7/8/10.
- Termux (Android).


***

## Requirements:

__Use pip or pip3:__
- [Python](https://python.org) 3.6+
  - [download](https://python.org)
- [click](https://github.com/pallets/click) 8.0.1
  - `pip3 install click~=8.0.1`
- [shred](https://github.com/smartlegion/shred/) 0.1.1
  - `pip3 install shred~=0.1.1`
- [cliinfo](https://github.com/smartlegion/cliinfo) 0.0.3
  - `pip3 install cliinfo=~=0.0.3`
- [smartpathlib](https://github.com/smartlegion/smartpathlib/) 0.0.2
  - `pip3 install smartpathlib~=0.0.2`
  
***

## Images:

![Shredi image](https://github.com/smartlegion/shredi/raw/master/data/images/shredi.png)

***

## What's new?:

### ___shredi v0.0.17___

- Upgrading to improved cliinfo version 0.0.3.
- Minor fixes.

***

#### Warning!:
- All versions up to 0.1.0 are working,
but experimental.

***

## Description:

shredi - Console utility for destroying files. 

Secure file overwriting, deletion, and destruction, 
both in manual and automatic modes, *without the possibility of recovery.

The utility allows you to destroy files to completely or 
partially complicate their recovery after deletion.

Be careful! Once the files are destroyed, they cannot be restored.

Recommend that you run the program on Linux, mount the disks, 
and work with them from root.

It may take a long time to destroy large files.


#### Warning!:

- To destroy some files, you need to run as an administrator!
- Be extremely careful and careful when working with the application, 
it is almost impossible to restore the destroyed data, 
even on expensive equipment.
- On some systems, and in some file systems, 
the work of this utility can be effective 
due to the existing features of storing and 
working with data.
- Remember that by destroying files, 
there may be copies of these files in your system. 
Moreover, there may be duplicates previously 
deleted in an unsafe way that can be restored.
- Do not shuffle important files before deleting 
or destroying them. In many systems, 
moving works in three stages, the file is read,
created in the specified directory,
deleted (in the usual not safe way).
Therefore, a copy of this file can be restored, 
provided that the place in the memory 
where it is stored has not been overwritten.

***

## Help:

### Install and Use:

`pip3 install shredi`

`shredi --help`

`shredi -n 100 -a /path/dir1 /path/file1.file`


#### Warning!:

To destroy some files, you need to run as an administrator!

### Download and Use:

`git clone https://github.com/smartlegion/shredi.git`

`cd shredi/`

`pip3 install -r requirements.txt`

`python3 shredi/shredi.py -n 100 -a /path/dir2 /path/file2.file`

### Termux support:

#### Variant 1:

- Install [Termux](https://termux.com)
- `pkg install python`
- `pip install shredi`
- `shredi --help`
- To access the file storage:
    - `termux-setup-storage` 
    - `cd ~/storage`
   
#### Variant 2

- Install [Termux](https://termux.com)
- `pkg install python`
- `pkg install git`
- `git clone https://github.com/smartlegion/shredi`
- `cd shredi/`
- `pip install -r requirements.txt`
- `python shredi/shredi.py --help`

#### For run tests:

- `pip3 install pytest`
- `pytest -v`

#### For run test coverage:

- `pip3 install pytest-cov`
- `pytest --cov`

![Coverage Image](https://github.com/smartlegion/shredi/raw/master/data/images/shredi_cov.png)

***

## Links:

- ___Github___: [https://github.com/smartlegion/](https://github.com/smartlegion/)
- ___Url___: [https://smartlegion.github.io/](https://smartlegion.github.io/)
- ___PyPi___: [https://pypi.org/user/smartlegion/](https://pypi.org/user/smartlegion/)
- ___Donate___: [https://smartlegion.github.io/donate/](https://smartlegion.github.io/donate/)


***

# Disclaimer of liability:

    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
    AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
    DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
    FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
    SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
    CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

***

## Information:

    =======================================================
    Copyright © 2021 Aleksandr Suvorov
    =======================================================