srndcipher


Namesrndcipher JSON
Version 0.6.4 PyPI version JSON
download
home_pageNone
SummaryA simple way to encode plain text, keeps the result sortable and partly searchable.
upload_time2025-10-22 11:38:59
maintainerrRR0VrFP
docs_urlNone
authorrRR0VrFP
requires_pythonNone
licenseMIT
keywords cipher srndcipher result sortable and partly searchable
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # srndcipher

A simple way to encode plain text, keeps the result sortable and partly searchable.

## Install

```shell
pip install srndcipher
```

## Usage

```
import os
import srndcipher

cipher1 = srndcipher.SrndCipher(password="Your password")
data1 = os.urandom(1024)
data2 = cipher1.encrypt(data1)
data3 = cipher1.decrypt(data2)
assert data1 == data3

cipher2 = srndcipher.SrndCipher(password="Your password", force_text=True)
data1 = "your plain message"
data2 = cipher2.encrypt(data1)
data3 = cipher2.decrypt(data2)
assert data1 == data3
```

## Notice

- SrndCipher instance init takes about 0.6 second time, so try to keep the instance reusable.

## Test Passed With Python Versions

- python 2.7
- python 3.2
- python 3.3
- python 3.4
- python 3.5
- python 3.6
- python 3.7
- python 3.8
- python 3.9
- python 3.10
- python 3.11

## Releases

### v0.5.0

- First relase.

### v0.6.2

- Set SrndCipher.default_result_encoder to cipherutils.Utf8Encoder().
- Works with fastutils>=0.42.11.

### v0.6.3

- Doc update.
- Deps on zenutils.

### v0.6.4

- Doc update.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "srndcipher",
    "maintainer": "rRR0VrFP",
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "cipher, SrndCipher, result sortable and partly searchable",
    "author": "rRR0VrFP",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/08/a5/c16371e89b64fd3c4a80aae7256e29ba4f43b11824ff6ff269ab24c5660f/srndcipher-0.6.4.tar.gz",
    "platform": null,
    "description": "# srndcipher\n\nA simple way to encode plain text, keeps the result sortable and partly searchable.\n\n## Install\n\n```shell\npip install srndcipher\n```\n\n## Usage\n\n```\nimport os\nimport srndcipher\n\ncipher1 = srndcipher.SrndCipher(password=\"Your password\")\ndata1 = os.urandom(1024)\ndata2 = cipher1.encrypt(data1)\ndata3 = cipher1.decrypt(data2)\nassert data1 == data3\n\ncipher2 = srndcipher.SrndCipher(password=\"Your password\", force_text=True)\ndata1 = \"your plain message\"\ndata2 = cipher2.encrypt(data1)\ndata3 = cipher2.decrypt(data2)\nassert data1 == data3\n```\n\n## Notice\n\n- SrndCipher instance init takes about 0.6 second time, so try to keep the instance reusable.\n\n## Test Passed With Python Versions\n\n- python 2.7\n- python 3.2\n- python 3.3\n- python 3.4\n- python 3.5\n- python 3.6\n- python 3.7\n- python 3.8\n- python 3.9\n- python 3.10\n- python 3.11\n\n## Releases\n\n### v0.5.0\n\n- First relase.\n\n### v0.6.2\n\n- Set SrndCipher.default_result_encoder to cipherutils.Utf8Encoder().\n- Works with fastutils>=0.42.11.\n\n### v0.6.3\n\n- Doc update.\n- Deps on zenutils.\n\n### v0.6.4\n\n- Doc update.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A simple way to encode plain text, keeps the result sortable and partly searchable.",
    "version": "0.6.4",
    "project_urls": null,
    "split_keywords": [
        "cipher",
        " srndcipher",
        " result sortable and partly searchable"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "2e9c5b356ace1f57b1842fd3db1320590df80e37014c316f3dfdf15d1c6bd46b",
                "md5": "5c3f4feaa36cf2899b5d68fe5279a58a",
                "sha256": "3e16b54cd8eb88f96d54d146effe85bbaefc3d2093a999fdc7712fd357043bd7"
            },
            "downloads": -1,
            "filename": "srndcipher-0.6.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5c3f4feaa36cf2899b5d68fe5279a58a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 3728,
            "upload_time": "2025-10-22T11:38:57",
            "upload_time_iso_8601": "2025-10-22T11:38:57.118605Z",
            "url": "https://files.pythonhosted.org/packages/2e/9c/5b356ace1f57b1842fd3db1320590df80e37014c316f3dfdf15d1c6bd46b/srndcipher-0.6.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "08a5c16371e89b64fd3c4a80aae7256e29ba4f43b11824ff6ff269ab24c5660f",
                "md5": "b801411cbeddd9ec18cb6f5a0e34f027",
                "sha256": "ff085636af18bede6dc56c017c045f0e60c81fb2b5508c7cb8cdbf7e58dc540f"
            },
            "downloads": -1,
            "filename": "srndcipher-0.6.4.tar.gz",
            "has_sig": false,
            "md5_digest": "b801411cbeddd9ec18cb6f5a0e34f027",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3882,
            "upload_time": "2025-10-22T11:38:59",
            "upload_time_iso_8601": "2025-10-22T11:38:59.245442Z",
            "url": "https://files.pythonhosted.org/packages/08/a5/c16371e89b64fd3c4a80aae7256e29ba4f43b11824ff6ff269ab24c5660f/srndcipher-0.6.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-10-22 11:38:59",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "srndcipher"
}
        
Elapsed time: 1.83620s