BaseHash


NameBaseHash JSON
Version 3.0.10 PyPI version JSON
download
home_pagehttp://bnlucas.github.io/python-basehash
SummaryReversible obfuscated identifier hashes.
upload_time2022-01-18 05:16:27
maintainer
docs_urlNone
authorNathan Lucas
requires_python
license Copyright 2013-2019 Nathan Lucas Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
keywords base encoding hash hashing security
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # BaseHash

[![Build Status](https://travis-ci.org/bnlucas/python-basehash.png?branch=master)](https://travis-ci.org/bnlucas/python-basehash)

# *** DEPRECATED ***
BaseHash is now deprecated and will no longer be maintained.
[Obfuskey](https://github.com/bnlucas/obfuskey) has been created to replace it. A
decision made when looking to modernize this utility. Obfuskey is only tested on
python3.6 and higher, so if you're needing lower support, you can continue to use
BaseHash.

BaseHash is a small library for creating reversible obfuscated identifier hashes
to a given base and length. The project is based on the GO library, [PseudoCrypt][pc]
by [Kevin Burns][kb]. The library is extendible to use custom alphabets and other
bases.

The library uses golden primes and the [Baillie-PSW][bp] primality test or the
`gmpy2.is_prime` (if available) for hashing to `maximum` length (`base ** length - 1`).

## v3.0.5

A massive overhaul was done with the primality algorithms. Including support for
[gmpy2][gmp] if it available on the system for that much more of an increase.

All methods being used to check primality in `primes.py` have been optimized and
benchmarked to try to get the best possible preformance when `gmpy2.is_prime`
and `gmpy2.next_prime` are not available.


## Install

```
pip install basehash
```

## Testing

```
nosetests tests/
```

[pc]: https://github.com/KevBurnsJr/pseudocrypt
[kb]: https://github.com/KevBurnsJr
[bp]: http://en.wikipedia.org/wiki/Baillie-PSW_primality_test
[gmp]: https://gmpy2.readthedocs.org/



            

Raw data

            {
    "_id": null,
    "home_page": "http://bnlucas.github.io/python-basehash",
    "name": "BaseHash",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "base,encoding,hash,hashing,security",
    "author": "Nathan Lucas",
    "author_email": "bnlucas@outlook.com",
    "download_url": "https://files.pythonhosted.org/packages/dc/f3/e06246d001e97d2d8fe81cda3385613bb3b5e01f9ba5d1469331ea7d4c0d/BaseHash-3.0.10.tar.gz",
    "platform": "",
    "description": "# BaseHash\n\n[![Build Status](https://travis-ci.org/bnlucas/python-basehash.png?branch=master)](https://travis-ci.org/bnlucas/python-basehash)\n\n# *** DEPRECATED ***\nBaseHash is now deprecated and will no longer be maintained.\n[Obfuskey](https://github.com/bnlucas/obfuskey) has been created to replace it. A\ndecision made when looking to modernize this utility. Obfuskey is only tested on\npython3.6 and higher, so if you're needing lower support, you can continue to use\nBaseHash.\n\nBaseHash is a small library for creating reversible obfuscated identifier hashes\nto a given base and length. The project is based on the GO library, [PseudoCrypt][pc]\nby [Kevin Burns][kb]. The library is extendible to use custom alphabets and other\nbases.\n\nThe library uses golden primes and the [Baillie-PSW][bp] primality test or the\n`gmpy2.is_prime` (if available) for hashing to `maximum` length (`base ** length - 1`).\n\n## v3.0.5\n\nA massive overhaul was done with the primality algorithms. Including support for\n[gmpy2][gmp] if it available on the system for that much more of an increase.\n\nAll methods being used to check primality in `primes.py` have been optimized and\nbenchmarked to try to get the best possible preformance when `gmpy2.is_prime`\nand `gmpy2.next_prime` are not available.\n\n\n## Install\n\n```\npip install basehash\n```\n\n## Testing\n\n```\nnosetests tests/\n```\n\n[pc]: https://github.com/KevBurnsJr/pseudocrypt\n[kb]: https://github.com/KevBurnsJr\n[bp]: http://en.wikipedia.org/wiki/Baillie-PSW_primality_test\n[gmp]: https://gmpy2.readthedocs.org/\n\n\n",
    "bugtrack_url": null,
    "license": " Copyright 2013-2019 Nathan Lucas  Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at  http://www.apache.org/licenses/LICENSE-2.0  Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ",
    "summary": "Reversible obfuscated identifier hashes.",
    "version": "3.0.10",
    "split_keywords": [
        "base",
        "encoding",
        "hash",
        "hashing",
        "security"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "dcf3e06246d001e97d2d8fe81cda3385613bb3b5e01f9ba5d1469331ea7d4c0d",
                "md5": "c46efc7074570a0be7fcc4022af9a545",
                "sha256": "ed7a694ef9cdf1b8ea1b2900036de8d3f7cb7fe02cebdc4b3c5b8c80c8150267"
            },
            "downloads": -1,
            "filename": "BaseHash-3.0.10.tar.gz",
            "has_sig": false,
            "md5_digest": "c46efc7074570a0be7fcc4022af9a545",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 5521,
            "upload_time": "2022-01-18T05:16:27",
            "upload_time_iso_8601": "2022-01-18T05:16:27.822492Z",
            "url": "https://files.pythonhosted.org/packages/dc/f3/e06246d001e97d2d8fe81cda3385613bb3b5e01f9ba5d1469331ea7d4c0d/BaseHash-3.0.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-01-18 05:16:27",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "basehash"
}
        
Elapsed time: 0.03331s