Skip to content

Commit

Permalink
Perform optimization rewrite and extend testing
Browse files Browse the repository at this point in the history
  • Loading branch information
evilaliv3 committed Dec 28, 2024
1 parent b692226 commit 1d00f4a
Show file tree
Hide file tree
Showing 3 changed files with 461 additions and 228 deletions.
21 changes: 4 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,33 +26,20 @@ globaleaks-eph-fs <mountpoint> [--storage_directory <directory>]

- `<mountpoint>`: The path where the filesystem will be mounted.
- `--storage_directory` (optional): The directory used for storage. If not provided, a temporary directory will be used.
- `--unmount`, `-u` (optional): If this flag is specified, the program will attempt to unmount the filesystem from the specified `<mount_point>`.

### Python API

You can also use `globaleaks-eph-fs` within your Python code. Here's an example:

```python
import argparse
from globaleaks_eph_fs import EphemeralFS
from globaleaks_eph_fs import mount_globaleaks_eph_fs

def main():
parser = argparse.ArgumentParser(description="GLOBALEAKS EPHEMERAL FS")
parser.add_argument('mount_point', help="Path to mount the filesystem")
parser.add_argument('--storage_directory', '-s', help="Optional storage directory. Defaults to a temporary directory.")
args = parser.parse_args()
eph_fs_process = mount_globaleaks_eph_fs(/mnt/globaleaks-eph-fs)

EphemeralFS(args.mount_point, args.storage_directory, nothreads=True, foreground=True)


if __name__ == '__main__':
main()
eph_fs_process.wait()
```

### Arguments

- `mount_point` (required): The directory where the encrypted filesystem will be mounted.
- `--storage_directory` (optional): Specify a custom storage directory for the filesystem. If not provided, a temporary directory will be used.

## Features

- **ChaCha20 Encryption**: All data stored in the filesystem is encrypted with ChaCha20.
Expand Down
Loading

0 comments on commit 1d00f4a

Please sign in to comment.