argon2


Nameargon2 JSON
Version 0.1.10 PyPI version JSON
download
home_pagehttps://github.com/flamewow/argon2_py
SummaryBindings for the argon2 password hasher
upload_time2015-12-20 22:40:47
maintainer
docs_urlNone
authorIlya Moroz
requires_pythonNone
licenseCC0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Python bindings for argon2 : https://github.com/P-H-C/phc-winner-argon2

Installation:
You can install argon2_py from this repository if you want the latest but possibly non-compiling version:

$ git clone --recursive https://github.com/flamewow/argon2_py

$ cd argon2_py

$ python setup.py build

Activate virtualenv (or use sudo): 

$ python setup.py install 

Or you can install the latest release from PYPI:

$ pip install argon2

>>> argon2.argon2_hash.__doc__
    This is argon2 hashing function
t - time cost, which defines the amount of computation realized and therefore the execution time, given in number of iterations
m - memory cost, which defines the memory usage, given in kibibytes
p - parallelism degree, which defines the number of parallel threads



Examples:
    >>> import argon2
    >>> argon2.argon2_hash("password", "some_salt", )
    b'\xa8&x\xc7\xd9\xc4\x1f\xdf[2\xd9hq\xab\xe5\xb4WV\x89\xca\xa4\xee\xb3\x98\xf1I\xd1\xdaf\xe7=\xfaA\x04\xeb\xe1\xfd\x94)\xad\x84\r\x9ed<8xE\xc3\xd3\xfb\x13\xcbN\xcf\\}\xfd-9\x8b\x07@\xd8\x10\x1a\x83\x05\xd5\xfd\xc4m\x9f\xd7\x81\xdcX\x87\xb2\x02\xa9R\xc1\x9d\xaf6\xbb\x8c\xe1vH+\x07\xc7Y\x80\xb3\xb5\xf8\xba\xbd\x87\xd8\xf5\xea\x1a\x04V&\xf7\xde\x9b\x93\x8dbQ\x91e\xf6\xd6\xa2\xd8G8\xe3\x9a\x03\xf3'
    _________________________________________________________________________________________________
    >>> import argon2
    >>> argon2.argon2_hash(password="some password", salt="some salt", t=16, m=8, p=1, buflen=128, argon_type=argon2.Argon2Type.Argon2_i)
    b"\x1f>\xe0\xb8\x88%\xef\xee\xb3n\\\xb85\x03\x14\xb8\xb8O\x02Zk\xbf<\xd5\xa0C\xf2,p\x00\xda\xd7Bc\xa71\x84\x10\x00\x8cx'\xec?Q\x8499\x9b\xd4)\xf1\x98F\x13!\x8bB\x12!\xc3U\x8d\x9a\xb5\x10\x8cIo\xd2p\xcd'\x8c\x96d\xa5?{\x1d*\xaf\xab\x99\x9e\xe9c\xa4\xb7\xb2\x00\xfa\x82\x96/\xdei_1Nun\x92j\n\xf3D#\x05\tj\xa2\x92\xd5\xf4nym\xd1Kq\xa1|\xd19\xa9Q8"
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/flamewow/argon2_py",
    "name": "argon2",
    "maintainer": "",
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": "",
    "keywords": "",
    "author": "Ilya Moroz",
    "author_email": "flamewowilia@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/5c/55/94605d5bfa140601fde256f548ed1733a5327f2d7d159b60a727e8613170/argon2-0.1.10.tar.gz",
    "platform": "Linux, Darwin",
    "description": "Python bindings for argon2 : https://github.com/P-H-C/phc-winner-argon2\r\n\r\nInstallation:\r\nYou can install argon2_py from this repository if you want the latest but possibly non-compiling version:\r\n\r\n$ git clone --recursive https://github.com/flamewow/argon2_py\r\n\r\n$ cd argon2_py\r\n\r\n$ python setup.py build\r\n\r\nActivate virtualenv (or use sudo): \r\n\r\n$ python setup.py install \r\n\r\nOr you can install the latest release from PYPI:\r\n\r\n$ pip install argon2\r\n\r\n>>> argon2.argon2_hash.__doc__\r\n    This is argon2 hashing function\r\nt - time cost, which defines the amount of computation realized and therefore the execution time, given in number of iterations\r\nm - memory cost, which defines the memory usage, given in kibibytes\r\np - parallelism degree, which defines the number of parallel threads\r\n\r\n\r\n\r\nExamples:\r\n    >>> import argon2\r\n    >>> argon2.argon2_hash(\"password\", \"some_salt\", )\r\n    b'\\xa8&x\\xc7\\xd9\\xc4\\x1f\\xdf[2\\xd9hq\\xab\\xe5\\xb4WV\\x89\\xca\\xa4\\xee\\xb3\\x98\\xf1I\\xd1\\xdaf\\xe7=\\xfaA\\x04\\xeb\\xe1\\xfd\\x94)\\xad\\x84\\r\\x9ed<8xE\\xc3\\xd3\\xfb\\x13\\xcbN\\xcf\\\\}\\xfd-9\\x8b\\x07@\\xd8\\x10\\x1a\\x83\\x05\\xd5\\xfd\\xc4m\\x9f\\xd7\\x81\\xdcX\\x87\\xb2\\x02\\xa9R\\xc1\\x9d\\xaf6\\xbb\\x8c\\xe1vH+\\x07\\xc7Y\\x80\\xb3\\xb5\\xf8\\xba\\xbd\\x87\\xd8\\xf5\\xea\\x1a\\x04V&\\xf7\\xde\\x9b\\x93\\x8dbQ\\x91e\\xf6\\xd6\\xa2\\xd8G8\\xe3\\x9a\\x03\\xf3'\r\n    _________________________________________________________________________________________________\r\n    >>> import argon2\r\n    >>> argon2.argon2_hash(password=\"some password\", salt=\"some salt\", t=16, m=8, p=1, buflen=128, argon_type=argon2.Argon2Type.Argon2_i)\r\n    b\"\\x1f>\\xe0\\xb8\\x88%\\xef\\xee\\xb3n\\\\\\xb85\\x03\\x14\\xb8\\xb8O\\x02Zk\\xbf<\\xd5\\xa0C\\xf2,p\\x00\\xda\\xd7Bc\\xa71\\x84\\x10\\x00\\x8cx'\\xec?Q\\x8499\\x9b\\xd4)\\xf1\\x98F\\x13!\\x8bB\\x12!\\xc3U\\x8d\\x9a\\xb5\\x10\\x8cIo\\xd2p\\xcd'\\x8c\\x96d\\xa5?{\\x1d*\\xaf\\xab\\x99\\x9e\\xe9c\\xa4\\xb7\\xb2\\x00\\xfa\\x82\\x96/\\xdei_1Nun\\x92j\\n\\xf3D#\\x05\\tj\\xa2\\x92\\xd5\\xf4nym\\xd1Kq\\xa1|\\xd19\\xa9Q8\"",
    "bugtrack_url": null,
    "license": "CC0",
    "summary": "Bindings for the argon2 password hasher",
    "version": "0.1.10",
    "project_urls": {
        "Download": "UNKNOWN",
        "Homepage": "https://github.com/flamewow/argon2_py"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5c5594605d5bfa140601fde256f548ed1733a5327f2d7d159b60a727e8613170",
                "md5": "7b42937bdf16d063b3d60357ac421fb8",
                "sha256": "523a3d3b88f3a46244b4976a6ca81994705848538bbe9e41426ea54ccb75eb90"
            },
            "downloads": -1,
            "filename": "argon2-0.1.10.tar.gz",
            "has_sig": false,
            "md5_digest": "7b42937bdf16d063b3d60357ac421fb8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 28270,
            "upload_time": "2015-12-20T22:40:47",
            "upload_time_iso_8601": "2015-12-20T22:40:47.144150Z",
            "url": "https://files.pythonhosted.org/packages/5c/55/94605d5bfa140601fde256f548ed1733a5327f2d7d159b60a727e8613170/argon2-0.1.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2015-12-20 22:40:47",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "flamewow",
    "github_project": "argon2_py",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "argon2"
}
        
Elapsed time: 0.31747s