base64-random


Namebase64-random JSON
Version 1.0.0 PyPI version JSON
download
home_page
SummaryGenerates an arbitrary length base 64 random number.
upload_time2023-12-01 22:51:10
maintainer
docs_urlNone
author
requires_python
licenseCopyright © 2023 Andrew Luchuk Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords base64 numbers random
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # base64_random

Generates a base 64 random number of an arbitrary length.

base64_random uses Python's `secrets` module to generate the random numbers, so you should be able to generate high
quality random numbers when using this library. That said, I cannot recommend that this library be used in contexts 
where high-quality random numbers are used to secure sensitive information. Please use a suitable cryptography library
for contexts where you need to protect information.

Please also note, that as of the time of writing, this library provides **NO SUPPORT** for Base64 encoding or decoding.
Additionally, this library generates numbers in base 64, it has no relation to the 
[Base64](https://en.wikipedia.org/wiki/Base64) encoding format.

## Usage
There are two main ways to use this package, command line invocation and importing the module. 

### Command Line Invocation
Command line usage is quite easy, simply pass the module the length of number you wish to generate:

```shell
python -m base64_random 10
```
Or, by invoking the shell script:
```shell
b64r 10
```

### Python module usage
You can also import this module in your code to use it:

```python
from base64_random import gen_random_base64

base64_number = gen_random_base64(10)

print(base64_number)
```

## Installation
`base64_random` is available on pip!

```shell
pip install base64_random
```

You can also install `base64_random` directly from git, but please refer to the 
[official documentation](https://pip.pypa.io/en/stable/getting-started/#install-a-package-from-github) for the details
of how to do that.
            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "base64-random",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "base64,numbers,random",
    "author": "",
    "author_email": "Andrew Luchuk <andrew.luchuk@outlook.com>",
    "download_url": "https://files.pythonhosted.org/packages/42/bf/63e1424db68cf158b2d4f8c5a405bfab07ab529c592b07db1c0cf9b696bd/base64_random-1.0.0.tar.gz",
    "platform": null,
    "description": "# base64_random\n\nGenerates a base 64 random number of an arbitrary length.\n\nbase64_random uses Python's `secrets` module to generate the random numbers, so you should be able to generate high\nquality random numbers when using this library. That said, I cannot recommend that this library be used in contexts \nwhere high-quality random numbers are used to secure sensitive information. Please use a suitable cryptography library\nfor contexts where you need to protect information.\n\nPlease also note, that as of the time of writing, this library provides **NO SUPPORT** for Base64 encoding or decoding.\nAdditionally, this library generates numbers in base 64, it has no relation to the \n[Base64](https://en.wikipedia.org/wiki/Base64) encoding format.\n\n## Usage\nThere are two main ways to use this package, command line invocation and importing the module. \n\n### Command Line Invocation\nCommand line usage is quite easy, simply pass the module the length of number you wish to generate:\n\n```shell\npython -m base64_random 10\n```\nOr, by invoking the shell script:\n```shell\nb64r 10\n```\n\n### Python module usage\nYou can also import this module in your code to use it:\n\n```python\nfrom base64_random import gen_random_base64\n\nbase64_number = gen_random_base64(10)\n\nprint(base64_number)\n```\n\n## Installation\n`base64_random` is available on pip!\n\n```shell\npip install base64_random\n```\n\nYou can also install `base64_random` directly from git, but please refer to the \n[official documentation](https://pip.pypa.io/en/stable/getting-started/#install-a-package-from-github) for the details\nof how to do that.",
    "bugtrack_url": null,
    "license": "Copyright \u00a9 2023 Andrew Luchuk  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \u201cSoftware\u201d), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \u201cAS IS\u201d, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "Generates an arbitrary length base 64 random number.",
    "version": "1.0.0",
    "project_urls": {
        "Homepage": "https://github.com/speratus/base64_random",
        "Repository": "https://github.com/speratus/base64_random"
    },
    "split_keywords": [
        "base64",
        "numbers",
        "random"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2a61e39074ac9e8f50343f04679bf69c4b57491b459e19fa8d1d23c517a3fbce",
                "md5": "3b11d7c151f8f8733c57753e0191aa7f",
                "sha256": "6da760ab92e85319de50e29b6ccc355b539b78107ee276e988f46277fb71887b"
            },
            "downloads": -1,
            "filename": "base64_random-1.0.0-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3b11d7c151f8f8733c57753e0191aa7f",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 4435,
            "upload_time": "2023-12-01T22:51:08",
            "upload_time_iso_8601": "2023-12-01T22:51:08.340940Z",
            "url": "https://files.pythonhosted.org/packages/2a/61/e39074ac9e8f50343f04679bf69c4b57491b459e19fa8d1d23c517a3fbce/base64_random-1.0.0-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "42bf63e1424db68cf158b2d4f8c5a405bfab07ab529c592b07db1c0cf9b696bd",
                "md5": "c022bf0e69c8b9d5b0f95e7b9f07001e",
                "sha256": "a9b84298a40d39221c4000474f68875669907609352cbc9d256f6f0e878802ab"
            },
            "downloads": -1,
            "filename": "base64_random-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "c022bf0e69c8b9d5b0f95e7b9f07001e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 2722146,
            "upload_time": "2023-12-01T22:51:10",
            "upload_time_iso_8601": "2023-12-01T22:51:10.703212Z",
            "url": "https://files.pythonhosted.org/packages/42/bf/63e1424db68cf158b2d4f8c5a405bfab07ab529c592b07db1c0cf9b696bd/base64_random-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-01 22:51:10",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "speratus",
    "github_project": "base64_random",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "base64-random"
}
        
Elapsed time: 0.15029s