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
Metadata
Release files for earring 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| earring-1.0.3.tar.gz | 29.9 kB | Details |
Release files / earring-1.0.3.tar.gz
| Download URL | earring-1.0.3.tar.gz |
|---|---|
| Size | 29.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
50bc6e10d11d4797e45b8f0b84049668957baaf5507d5710b502b0c01b11b840
|
|
BLAKE2b-256 checksum How to use checksums |
a776a6e51452d1653907860e9262176918c2fdba1d0d215d5fa49c68fd702d3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|