Sanzan


NameSanzan JSON
Version 0.0.16 PyPI version JSON
download
home_page
SummaryQuick and simple video obfuscation
upload_time2022-05-14 17:54:49
maintainer
docs_urlNone
author
requires_python
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Sanzan

[![PyPI Release](https://github.com/kokseen1/Sanzan/actions/workflows/release.yml/badge.svg)](https://github.com/kokseen1/Sanzan/actions/workflows/release.yml)
[![tests](https://github.com/kokseen1/Sanzan/actions/workflows/test.yml/badge.svg)](https://github.com/kokseen1/Sanzan/actions/workflows/test.yml)
[![PyPI Version](https://img.shields.io/pypi/v/sanzan.svg)](https://pypi.python.org/pypi/sanzan/)

Quick and simple video obfuscation

## Demo

Encrypted Video:

![Encrypted](https://raw.githubusercontent.com/kokseen1/Sanzan/main/img/enc.gif?raw=True)

Decrypted Video:

![Decrypted](https://raw.githubusercontent.com/kokseen1/Sanzan/main/img/dec.gif?raw=True)

<!-- <p align="center">
 <p align="center">Obfuscated Video:<p align="center">
  <img src="https://raw.githubusercontent.com/kokseen1/Sanzan/main/img/obfuscated.png?raw=True" width="70%" alt="Obfuscated Video"/>
</p>

<p align="center">
 <p align="center">Deobfuscated Video:<p align="center">
  <img src="https://raw.githubusercontent.com/kokseen1/Sanzan/main/img/deobfuscated.png?raw=True" width="70%" alt="Deobfuscated Video"/>
</p> -->

## Installation

```shell
pip install sanzan
```

## Usage

### Encryption

#### With password

```shell
sz -e original.mp4 -o encrypted.mp4 -pw <password>
```

#### With randomly generated key

```shell
sz -e original.mp4 -o encrypted.mp4
```

#### On streams

```shell
sz -e https://youtu.be/dQw4w9WgXcQ -o encrypted.mp4
```

### Decryption

#### With password

```shell
sz -d encrypted.mp4 -o decrypted.mp4 -pw <password>
```

#### With keyfile

```shell
sz -d encrypted.mp4 -o decrypted.mp4 -k <keyfile>
```

## More Usage

When encrypting, use the optional `-k` flag to specify the path of the generated keyfile.

```shell
sz -e original.mp4 -o encrypted.mp4 -k <generated keyfile>
```

Use the optional `-p` flag to view a real time preview of the output. This flag can be used alone or along with the `-o` argument.

```shell
sz -d encrypted.mp4 -o decrypted.mp4 -k <keyfile> -p
```

Use the optional `-s` flag to hide the progress bar. Might improve performance.


## Note

- `cv2.waitKey` is unable to maintain a consistent playback framerate for `cv2.imshow`.

<!-- - `vidgear` is used for streaming, but will fall back to `YDL` if streaming is unavailable. -->

- Audio is not yet supported.



            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "Sanzan",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/26/3a/4653ff894740e1245f8c612c6b651007a4b0542ab1b65c4444280b110915/Sanzan-0.0.16.tar.gz",
    "platform": null,
    "description": "# Sanzan\n\n[![PyPI Release](https://github.com/kokseen1/Sanzan/actions/workflows/release.yml/badge.svg)](https://github.com/kokseen1/Sanzan/actions/workflows/release.yml)\n[![tests](https://github.com/kokseen1/Sanzan/actions/workflows/test.yml/badge.svg)](https://github.com/kokseen1/Sanzan/actions/workflows/test.yml)\n[![PyPI Version](https://img.shields.io/pypi/v/sanzan.svg)](https://pypi.python.org/pypi/sanzan/)\n\nQuick and simple video obfuscation\n\n## Demo\n\nEncrypted Video:\n\n![Encrypted](https://raw.githubusercontent.com/kokseen1/Sanzan/main/img/enc.gif?raw=True)\n\nDecrypted Video:\n\n![Decrypted](https://raw.githubusercontent.com/kokseen1/Sanzan/main/img/dec.gif?raw=True)\n\n<!-- <p align=\"center\">\n <p align=\"center\">Obfuscated Video:<p align=\"center\">\n  <img src=\"https://raw.githubusercontent.com/kokseen1/Sanzan/main/img/obfuscated.png?raw=True\" width=\"70%\" alt=\"Obfuscated Video\"/>\n</p>\n\n<p align=\"center\">\n <p align=\"center\">Deobfuscated Video:<p align=\"center\">\n  <img src=\"https://raw.githubusercontent.com/kokseen1/Sanzan/main/img/deobfuscated.png?raw=True\" width=\"70%\" alt=\"Deobfuscated Video\"/>\n</p> -->\n\n## Installation\n\n```shell\npip install sanzan\n```\n\n## Usage\n\n### Encryption\n\n#### With password\n\n```shell\nsz -e original.mp4 -o encrypted.mp4 -pw <password>\n```\n\n#### With randomly generated key\n\n```shell\nsz -e original.mp4 -o encrypted.mp4\n```\n\n#### On streams\n\n```shell\nsz -e https://youtu.be/dQw4w9WgXcQ -o encrypted.mp4\n```\n\n### Decryption\n\n#### With password\n\n```shell\nsz -d encrypted.mp4 -o decrypted.mp4 -pw <password>\n```\n\n#### With keyfile\n\n```shell\nsz -d encrypted.mp4 -o decrypted.mp4 -k <keyfile>\n```\n\n## More Usage\n\nWhen encrypting, use the optional `-k` flag to specify the path of the generated keyfile.\n\n```shell\nsz -e original.mp4 -o encrypted.mp4 -k <generated keyfile>\n```\n\nUse the optional `-p` flag to view a real time preview of the output. This flag can be used alone or along with the `-o` argument.\n\n```shell\nsz -d encrypted.mp4 -o decrypted.mp4 -k <keyfile> -p\n```\n\nUse the optional `-s` flag to hide the progress bar. Might improve performance.\n\n\n## Note\n\n- `cv2.waitKey` is unable to maintain a consistent playback framerate for `cv2.imshow`.\n\n<!-- - `vidgear` is used for streaming, but will fall back to `YDL` if streaming is unavailable. -->\n\n- Audio is not yet supported.\n\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Quick and simple video obfuscation",
    "version": "0.0.16",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "b8031387698cf11f8718f4cac4228d14",
                "sha256": "5eb05e91e9b8ff7e70b8ac83b2a32edf39d529cb49552a017145303905acd02e"
            },
            "downloads": -1,
            "filename": "Sanzan-0.0.16-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b8031387698cf11f8718f4cac4228d14",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 4937,
            "upload_time": "2022-05-14T17:54:48",
            "upload_time_iso_8601": "2022-05-14T17:54:48.411023Z",
            "url": "https://files.pythonhosted.org/packages/c1/17/dc34d34d8efd4638a10506de444a7d7b993e998764626e5c94e2ab264a17/Sanzan-0.0.16-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "2d70b59a49db930d363f657c1c947a96",
                "sha256": "e7956780c246e841766185468590534eae4c64afd5f429e6a4bdf724493a5a6a"
            },
            "downloads": -1,
            "filename": "Sanzan-0.0.16.tar.gz",
            "has_sig": false,
            "md5_digest": "2d70b59a49db930d363f657c1c947a96",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4496,
            "upload_time": "2022-05-14T17:54:49",
            "upload_time_iso_8601": "2022-05-14T17:54:49.636162Z",
            "url": "https://files.pythonhosted.org/packages/26/3a/4653ff894740e1245f8c612c6b651007a4b0542ab1b65c4444280b110915/Sanzan-0.0.16.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-05-14 17:54:49",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "sanzan"
}
        
Elapsed time: 0.35579s