shred

shred - A cross-platform library for securely deleting files beyond recovery.


Author and developer: Aleksandr Suvorov (Smart Legion).

mysmartlegion@ya.ru
https://smartlegion.github.io/

Supported:

  • Linux: All
  • Windows: 7/8/10
  • Termux on Android

Requirements:


Sample programs:

  • shredi - Console utility for destroying files. Secure file overwriting, deletion, and destruction, both in manual and automatic modes, *without the possibility of recovery.

What's new?

shred v0.1.2

  • Added new modules.
  • Added new tests.
  • Dropped support for older versions.

Description:

A cross-platform library for securely deleting files beyond recovery.

Destruction, overwriting, and secure deletion may not be effective on some systems.

Use Linux for more reliable performance.

Allows you to create a console and graphical applications for file shredding, overwrite, secure deletion.

Support for Linux, Windows, Android(Termux). Once destroyed, the files are impossible (or almost impossible) to recover, even on expensive hardware.

You can use this package in any application where you want to overwrite the file with random data and safely delete it, for example, when encrypting, moving, or in other cases.

Be extremely careful when using it!


Help:


  • pip3 install shred

from shred.shredders import FileShredder file = 'file.txt'shredder = FileShredder() destroy_status = shredder.destroy(file=file, rew=100) remove_status = shredder.remove(file=file)

Termux support:

  • Utilities created with this package work without problems in Termux:
  • Shredi - Console utility for destroying files.

Windows support:

Windows 7/8/10

To destroy files on windows, the best is:

  • Create a bootable USB stick with live-linux.
  • Start in live-system.
  • Browse windows drives.
  • Safely overwrite or delete files.

Tests:

for run tests:

  • pip3 install pytest
  • pytest -v

For run test coverage:

  • pip3 install pytest-cov
  • pytest -cov

Test coverage: 100%!

Coverage Image

GitHub

GitHub - smartlegion/shred: A cross-platform library for securely deleting files beyond recovery.
A cross-platform library for securely deleting files beyond recovery. - GitHub - smartlegion/shred: A cross-platform library for securely deleting files beyond recovery.