semvec/pypi-packages huggingface dataset:
pyfilecrypto 1.0.3
A module for file encryption and decryption
Requires Python: >=3.6

# pyfilecrypto Documentation
## Overview
The `pyfilecrypto` module provides functionality for file encryption, decryption, and zip compression with password protection in Python. It leverages `cryptography.fernet` for file encryption and `pyzipper` for handling zip files with AES encryption.

## Import
``` python
from pyfilecrypto.crypto import *
```
## Classes
### ACrypto
#### Methods:

* genKey(filename):
Generates a new encryption key and saves it to the specified file.
``` python
ACrypto.genKey(filename)
```

* loadKey(filename):
Loads an encryption key from the specified file.
``` python
ACrypto.loadKey(filename)
```

* encryptFile(original_filename, save_as, keyfile):
Encrypts a file using the specified encryption key file and saves the encrypted data to another file.
``` python
ACrypto.encryptFile(original_filename, save_as, keyfile)
```

*decryptFile(filename, save_as, keyfile):
Decrypts an encrypted file using the specified encryption key file and saves the decrypted data to another file.
``` python
ACrypto.decryptFile(filename, save_as, keyfile)
```


### BCrypto
#### Methods:
* Encrypt(filename):
Encrypts a file with multiple encryption keys ("alpha", "bravo", "charlie").
``` python
BCrypto.Encrypt(filename)
```

* Decrypt(filename):
Decrypts a file that was encrypted with multiple keys ("charlie", "bravo", "alpha").
``` python
BCrypto.Decrypt(filename)
```

* crypt(filename, method):
Encrypts or decrypts a file based on the specified method ("encrypt" or "decrypt").
``` python
BCrypto.crypt(filename, method)
```

### Crypto
#### Methods:
* crypt(filename, method, password):
Encrypts or decrypts a file with password-protected zip archive support.
``` python
Crypto.crypt(filename, method, password)
```

## Usage
### Method: 1
#### Generate Encryption Key and Encrypt File
``` python
from pyfilecrypto.crypto import ACrypto
ACrypto.encryptFile("test.txt", "test.enc", "my_secret.key")
```

#### Use key and Decrypt File
``` python
from pyfilecrypto.crypto import ACrypto
ACrypto.decryptFile("test.enc", "test.txt", "my_secret.key")
```

### Method: 2
#### Generate Encryption Key and Encrypt File
``` python
from pyfilecrypto.crypto import BCrypto
BCrypto.Encrypt(filename = "test.txt")
```

#### Use keys and Decrypt file
``` python
from pyfilecrypto.crypto import BCrypto
BCrypto.Decrypt(filename = "test.txt")
```

### Method: 3
#### Generate Encryption key and Encrypt File
``` python 
from pyfilecrypto.crypto import BCrypto
BCrypto.crypt(filename = "test.txt", method = "encrypt")
```

#### Decrypt file using keys
``` python
from pyfilecrypto.crypto import BCrypto
BCrypto.crypt(filename = "test.txt", method = "decrypt")
```

### Method: 4
#### Encrypt and Decrypt file with keys
``` python
from pyfilecrypto.crypto import Crypto
Crypto.crypt(filename = "test.txt", method = "encrypt", password = "password")
Crypto.crypt(filename = "test.txt", method = "decrypt", password = "password")
```


## Dependencies
* `cryptography`
* `pyzipper`
pyffstream 0.0.31
pyffstream.
Requires Python: >=3.9
Keywords: ffmpeg, streaming, srt, rtmp

# pyffstream

[![PyPI](https://img.shields.io/pypi/v/pyffstream.svg)](https://pypi.org/project/pyffstream/)
[![Python](https://img.shields.io/pypi/pyversions/pyffstream.svg)](https://pypi.org/project/pyffstream/)
[![Docs](https://readthedocs.org/projects/pyffstream/badge/)](https://pyffstream.readthedocs.io/)
[![Release](https://github.com/gbeauregard/pyffstream/workflows/Release/badge.svg)](https://github.com/GBeauregard/pyffstream/actions/workflows/release.yml)
[![Tox](https://github.com/gbeauregard/pyffstream/workflows/Tox/badge.svg)](https://github.com/GBeauregard/pyffstream/actions/workflows/tox.yml)
[![CodeQL](https://github.com/gbeauregard/pyffstream/workflows/CodeQL/badge.svg)](https://github.com/GBeauregard/pyffstream/actions/workflows/codeql-analysis.yml)
[![Code Style](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

A CLI wrapper for ffmpeg to stream files over SRT/RTMP. Also supports the api
for a not (yet) open sourced pyffserver endpoint.

## Usage

See [the documentation](https://pyffstream.readthedocs.io/) for a list of CLI options.


## Notes

The CLI interface is relatively stable, but the API helper functions are
subject to change drastically until at least 0.1.
icm 0.5.3
Icestudio Collection Manager
Requires Python: >=3.9

![](https://github.com/FPGAwars/icm/raw/master/wiki/Logo/icm-github.svg)

[![PyPI Version][pypi-image]][pypi-url]
[![Build Status][build-image]][build-url]
[![License][license-image]][license-url]


# Icestudio collection manager

Tools to manage [Icestudio](https://github.com/FPGAwars) collections: template creation, translation update, automatic readme generation...

## Documentation

Find all the information on the [WIKI page](https://github.com/FPGAwars/icm/wiki)  

## Install

```bash
pip install icm
```

## Commands

|  Command   | Description |
|:----------:|:-----------:|
| [create](https://github.com/FPGAwars/icm/wiki#icm-create) | Create a collection structure. |
| [update](https://github.com/FPGAwars/icm/wiki#icm-update) | Update docs and translation. |
| [validate](https://github.com/FPGAwars/icm/wiki#icm-validate) | Validate a collection. |

## Development

### Installing the development version on Ubuntu

```
sudo pip3 install -U git+https://github.com/FPGAwars/icm.git
```


## Authors

* [Jesús Arroyo Torrens](https://github.com/Jesus89)

## Contributors

* [Juan Gonzalez Gomez (Obijuan)](https://github.com/Obijuan)  

## License

Licensed under [GPLv2](http://opensource.org/licenses/GPL-2.0).

------
![](https://github.com/FPGAwars/icestudio-wiki/raw/main/Logos/fgpawars-banner.svg)

<!-- Badges -->
[pypi-image]: https://img.shields.io/pypi/v/icm
[pypi-url]: https://pypi.org/project/icm/
[build-image]: https://github.com/FPGAwars/icm/actions/workflows/build.yml/badge.svg
[build-url]: https://github.com/FPGAwars/icm/actions/workflows/build.yml
[license-image]: http://img.shields.io/:license-gpl-blue.svg
[license-url]: (http://opensource.org/licenses/GPL-2.0)