int-encoder


Nameint-encoder JSON
Version 1.0.0 PyPI version JSON
download
home_pageNone
SummaryA library for encoding and decoding integers using modular arithmetic
upload_time2024-12-17 00:41:25
maintainerNone
docs_urlNone
authorInt Encoder
requires_pythonNone
licenseMIT
keywords integer encoding modular arithmetic decoding encryption
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # int_encoder

`int_encoder` is a Python library for encoding and decoding integers using modular arithmetic.

## Installation

To install the library from PyPI, simply run:

```bash
pip3 install int-encoder
```

## Configuration

The library uses two configuration constants, defined in `config.py`:

- `INT_ENCODE_KEY`: The key used for encoding and decoding integers.
- `INT_ENCODED_MAX`: The maximum value for the encoded integer.

These values can be modified in `config.py` to suit your needs.


## Usage

```python
import int_encoder

# Modify configuration constants (optional)
int_encoder.config.INT_ENCODE_KEY = 987654321  # New key for encoding
int_encoder.config.INT_ENCODED_MAX = 2 ** 16   # New maximum value for encoded integers

# Example usage
int_to_encode = 123456
encoded_value = int_encoder.encode(int_to_encode)
print(f"Encoded value: {encoded_value}")

decoded_value = int_encoder.decode(encoded_value)
print(f"Decoded value: {decoded_value}")
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "int-encoder",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "integer, encoding, modular arithmetic, decoding, encryption",
    "author": "Int Encoder",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/71/ab/923cd145da2337901e345a8f27d35048cf06900a9578ffa33fa648739402/int_encoder-1.0.0.tar.gz",
    "platform": null,
    "description": "# int_encoder\n\n`int_encoder` is a Python library for encoding and decoding integers using modular arithmetic.\n\n## Installation\n\nTo install the library from PyPI, simply run:\n\n```bash\npip3 install int-encoder\n```\n\n## Configuration\n\nThe library uses two configuration constants, defined in `config.py`:\n\n- `INT_ENCODE_KEY`: The key used for encoding and decoding integers.\n- `INT_ENCODED_MAX`: The maximum value for the encoded integer.\n\nThese values can be modified in `config.py` to suit your needs.\n\n\n## Usage\n\n```python\nimport int_encoder\n\n# Modify configuration constants (optional)\nint_encoder.config.INT_ENCODE_KEY = 987654321  # New key for encoding\nint_encoder.config.INT_ENCODED_MAX = 2 ** 16   # New maximum value for encoded integers\n\n# Example usage\nint_to_encode = 123456\nencoded_value = int_encoder.encode(int_to_encode)\nprint(f\"Encoded value: {encoded_value}\")\n\ndecoded_value = int_encoder.decode(encoded_value)\nprint(f\"Decoded value: {decoded_value}\")\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A library for encoding and decoding integers using modular arithmetic",
    "version": "1.0.0",
    "project_urls": {
        "Repository": "https://github.com/intencoder/int_encoder"
    },
    "split_keywords": [
        "integer",
        " encoding",
        " modular arithmetic",
        " decoding",
        " encryption"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "24eda5e843cee9c35ee92af873d6dce00beb1e480b55648ab2d695834c2c9dd1",
                "md5": "b99a0e0e259c8ab1dbb95b3629dce16d",
                "sha256": "d5ca97183598180f99b858c2fad6b4f18e8c8a5d77f6e5bff05617803ae36a1a"
            },
            "downloads": -1,
            "filename": "int_encoder-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b99a0e0e259c8ab1dbb95b3629dce16d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 3499,
            "upload_time": "2024-12-17T00:41:23",
            "upload_time_iso_8601": "2024-12-17T00:41:23.488719Z",
            "url": "https://files.pythonhosted.org/packages/24/ed/a5e843cee9c35ee92af873d6dce00beb1e480b55648ab2d695834c2c9dd1/int_encoder-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "71ab923cd145da2337901e345a8f27d35048cf06900a9578ffa33fa648739402",
                "md5": "aa2c8d5c3d63e0ed0ec1708a1dcbe0fc",
                "sha256": "a2d6b6c8e11183a3e397ac7aa4ed14fb151c9082da64e37e752325c9d12a527f"
            },
            "downloads": -1,
            "filename": "int_encoder-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "aa2c8d5c3d63e0ed0ec1708a1dcbe0fc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3063,
            "upload_time": "2024-12-17T00:41:25",
            "upload_time_iso_8601": "2024-12-17T00:41:25.622996Z",
            "url": "https://files.pythonhosted.org/packages/71/ab/923cd145da2337901e345a8f27d35048cf06900a9578ffa33fa648739402/int_encoder-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-17 00:41:25",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "intencoder",
    "github_project": "int_encoder",
    "github_not_found": true,
    "lcname": "int-encoder"
}
        
Elapsed time: 2.40297s