earring


Nameearring JSON
Version 1.0.3 PyPI version JSON
download
home_page
Summaryfintech
upload_time2024-01-15 05:51:15
maintainer
docs_urlNone
author
requires_python
licenseGPL 3.0 + MongoDB SSPL
keywords offline signing offline auth authentication elliptic curves cloud money
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            


******

Bravo!  You have received a Medical Diploma in Earring from   
the Orbital Convergence University International Air and Water Embassy of the Tangerine Planet.  

You are now officially certified to include "earring" in your practice.

******



# earring

---

## description
This is an implementation of possibly one of the most  
secure authentication mechanisms, an ED448 elliptic curve.   

---

## installation
`[ZSH] pip install earring`

---

## key generation
```
import earring.modules.ED448.private.creator as ED448_private_key_creator
import earring.modules.ED448.public.creator as ED448_public_key_creator

import pathlib
from os.path import dirname, join, normpath
import os

seed = "4986888b11358bf3d541b41eea5daece1c6eff64130a45fc8b9ca48f3e0e02463c99c5aedc8a847686d669b7d547c18fe448fc5111ca88f4e8"
format = "PEM"

private_key_path = normpath (join (pathlib.Path (__file__).parent.resolve (), "ED448_private_key")) + "." + format
public_key_path = normpath (join (pathlib.Path (__file__).parent.resolve (), "ED448_public_key")) + "." + format

private_key = ED448_private_key_creator.create (seed, format, private_key_path)
private_key_instance = private_key ["instance"]
private_key_string = private_key ["string"]

public_key = ED448_public_key_creator.create (
	private_key_path = private_key_path,
	public_key_path = public_key_path,
	public_key_format = format
)
public_key_instance = public_key ["instance"]
public_key_string = public_key ["string"]
```

---

## signatures and verification

### signatures
```
import earring.modules.ED448.sign as sign

unsigned_bytes = b"{}"
signed = sign.start (
	private_key_path = "",
	unsigned_bytes = unsigned_bytes
)

signed_bytes = signed.bytes
```


### verification
```
import earring.modules.ED448.verify as verify

unsigned_bytes = b"{}"
signed_bytes = signed.bytes	
	
#
#	returns a boolean 
#
verification_status = verify.start (
	public_key_path = "",
	
	signed_bytes = signed_bytes,
	unsigned_bytes = unsigned_bytes
)
assert (verification_status == True), verification_status

```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "earring",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "offline signing,offline auth,authentication,elliptic curves,cloud money",
    "author": "",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/a7/76/a6e51452d1653907860e9262176918c2fdba1d0d215d5fa49c68fd702d3f/earring-1.0.3.tar.gz",
    "platform": null,
    "description": "\n\n\n******\n\nBravo!  You have received a Medical Diploma in Earring from   \nthe Orbital Convergence University International Air and Water Embassy of the Tangerine Planet.  \n\nYou are now officially certified to include \"earring\" in your practice.\n\n******\n\n\n\n# earring\n\n---\n\n## description\nThis is an implementation of possibly one of the most  \nsecure authentication mechanisms, an ED448 elliptic curve.   \n\n---\n\n## installation\n`[ZSH] pip install earring`\n\n---\n\n## key generation\n```\nimport earring.modules.ED448.private.creator as ED448_private_key_creator\nimport earring.modules.ED448.public.creator as ED448_public_key_creator\n\nimport pathlib\nfrom os.path import dirname, join, normpath\nimport os\n\nseed = \"4986888b11358bf3d541b41eea5daece1c6eff64130a45fc8b9ca48f3e0e02463c99c5aedc8a847686d669b7d547c18fe448fc5111ca88f4e8\"\nformat = \"PEM\"\n\nprivate_key_path = normpath (join (pathlib.Path (__file__).parent.resolve (), \"ED448_private_key\")) + \".\" + format\npublic_key_path = normpath (join (pathlib.Path (__file__).parent.resolve (), \"ED448_public_key\")) + \".\" + format\n\nprivate_key = ED448_private_key_creator.create (seed, format, private_key_path)\nprivate_key_instance = private_key [\"instance\"]\nprivate_key_string = private_key [\"string\"]\n\npublic_key = ED448_public_key_creator.create (\n\tprivate_key_path = private_key_path,\n\tpublic_key_path = public_key_path,\n\tpublic_key_format = format\n)\npublic_key_instance = public_key [\"instance\"]\npublic_key_string = public_key [\"string\"]\n```\n\n---\n\n## signatures and verification\n\n### signatures\n```\nimport earring.modules.ED448.sign as sign\n\nunsigned_bytes = b\"{}\"\nsigned = sign.start (\n\tprivate_key_path = \"\",\n\tunsigned_bytes = unsigned_bytes\n)\n\nsigned_bytes = signed.bytes\n```\n\n\n### verification\n```\nimport earring.modules.ED448.verify as verify\n\nunsigned_bytes = b\"{}\"\nsigned_bytes = signed.bytes\t\n\t\n#\n#\treturns a boolean \n#\nverification_status = verify.start (\n\tpublic_key_path = \"\",\n\t\n\tsigned_bytes = signed_bytes,\n\tunsigned_bytes = unsigned_bytes\n)\nassert (verification_status == True), verification_status\n\n```\n",
    "bugtrack_url": null,
    "license": "GPL 3.0 + MongoDB SSPL",
    "summary": "fintech",
    "version": "1.0.3",
    "project_urls": null,
    "split_keywords": [
        "offline signing",
        "offline auth",
        "authentication",
        "elliptic curves",
        "cloud money"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a776a6e51452d1653907860e9262176918c2fdba1d0d215d5fa49c68fd702d3f",
                "md5": "3d8639b21ca826bb2b284343ce62a463",
                "sha256": "50bc6e10d11d4797e45b8f0b84049668957baaf5507d5710b502b0c01b11b840"
            },
            "downloads": -1,
            "filename": "earring-1.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "3d8639b21ca826bb2b284343ce62a463",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 29939,
            "upload_time": "2024-01-15T05:51:15",
            "upload_time_iso_8601": "2024-01-15T05:51:15.568552Z",
            "url": "https://files.pythonhosted.org/packages/a7/76/a6e51452d1653907860e9262176918c2fdba1d0d215d5fa49c68fd702d3f/earring-1.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-15 05:51:15",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "earring"
}
        
Elapsed time: 1.36639s