Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 1.22 KB

README.md

File metadata and controls

37 lines (25 loc) · 1.22 KB

fs

Virtual file system with encryption support (AES-128)

Features

  • Dependency-free: native, no third-party packages to install to work with the file system and encryption!
  • Saving and checking the checksum for each file during packing (encryption) and extraction (decryption)
  • Support for data compression and automatic partitioning of virtual file storage into volumes

fs

fs

fs

Usage

See examples below

Examples

Store all files from input to the encrypted virtual filesystem storage and receive them back to output.

from fs import FSD

# demo init
fsd = FSD('password', root='temp', input='input', output='output', storage='storage', volume=1024)
# file system conversion, packaging and encryption
fsd.store()
# decryption, decompression and file system conversion
fsd.receive()

Remarks

  • If no password is specified, the encryption key is generated automatically and stored in the file fs.key.
  • You can also set the volume size of the virtual file system: in this case, the storage will be automatically partitioned (param volume, MB).