srndcipher


Namesrndcipher JSON
Version 0.6.3 PyPI version JSON
download
home_page
SummaryA simple way to encode plain text, keeps the result sortable and partly searchable.
upload_time2023-09-09 12:45:40
maintainerJiang Wei
docs_urlNone
authorJiang Wei
requires_python
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.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "srndcipher",
    "maintainer": "Jiang Wei",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "jiangwei@zencore.cn",
    "keywords": "cipher,SrndCipher,result sortable and partly searchable",
    "author": "Jiang Wei",
    "author_email": "jiangwei@zencore.cn",
    "download_url": "https://files.pythonhosted.org/packages/02/35/98a48e8457e7f778c080f3ebe1ef1ff164d3c124d27f557f166b72d1037e/srndcipher-0.6.3.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",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A simple way to encode plain text, keeps the result sortable and partly searchable.",
    "version": "0.6.3",
    "project_urls": null,
    "split_keywords": [
        "cipher",
        "srndcipher",
        "result sortable and partly searchable"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "65487c94ba51051217e2d62562eaecb96a27bd51a570c7d629b9651c6f3bd3a4",
                "md5": "6ac82361b69502d72c543e4e24a338cc",
                "sha256": "be44141f4f807546e80fb806d997f17013a8343ce3f2464bc21474559e371b22"
            },
            "downloads": -1,
            "filename": "srndcipher-0.6.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6ac82361b69502d72c543e4e24a338cc",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 3668,
            "upload_time": "2023-09-09T12:45:38",
            "upload_time_iso_8601": "2023-09-09T12:45:38.937187Z",
            "url": "https://files.pythonhosted.org/packages/65/48/7c94ba51051217e2d62562eaecb96a27bd51a570c7d629b9651c6f3bd3a4/srndcipher-0.6.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "023598a48e8457e7f778c080f3ebe1ef1ff164d3c124d27f557f166b72d1037e",
                "md5": "50754a37bf90f22a875ec01edbfbdb8b",
                "sha256": "017d26a55290a502f2751e549ce4499f44349dadbfbe0d4d82134b1b8bfa8c3c"
            },
            "downloads": -1,
            "filename": "srndcipher-0.6.3.tar.gz",
            "has_sig": false,
            "md5_digest": "50754a37bf90f22a875ec01edbfbdb8b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3818,
            "upload_time": "2023-09-09T12:45:40",
            "upload_time_iso_8601": "2023-09-09T12:45:40.720972Z",
            "url": "https://files.pythonhosted.org/packages/02/35/98a48e8457e7f778c080f3ebe1ef1ff164d3c124d27f557f166b72d1037e/srndcipher-0.6.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-09 12:45:40",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "srndcipher"
}
        
Elapsed time: 0.10934s