elliptic techniques
Project description
INSTALLATION:
pip install ENCHUFLA
# pip install ENCHUFLA --upgrade
START:
ENCHUFLA KEG TAP --port 1110
BUILD PRIVATE KEY:
import requests
import json
from os.path import dirname, join, normpath
import os
r = requests.put (
'http://127.0.0.1:1110',
data = json.dumps ({
"START": "BUILD ED448 PRIVATE KEY",
"FIELDS": {
"SEED": "5986888b11358bf3d541b41eea5daece1c6eff64130a45fc8b9ca48f3e0e02463c99c5aedc8a847686d669b7d547c18fe448fc5111ca88f4e8",
"PATH": normpath (join (os.getcwd (), "ED448_PRIVATE_KEY.DER"))
}
})
)
print (r.text)
BUILD PUBLIC KEY:
import requests
import json
from os.path import dirname, join, normpath
import os
r = requests.put (
'http://127.0.0.1:1110',
data = json.dumps ({
"START": "BUILD ED448 PUBLIC KEY",
"FIELDS": {
"PRIVATE KEY PATH": normpath (join (os.getcwd (), "ED448_PRIVATE_KEY.DER")),
"PUBLIC KEY PATH": normpath (join (os.getcwd (), "ED448_PUBLIC_KEY.DER")),
"PUBLIC KEY FORMAT": "DER"
}
})
)
print (r.text)
SIGN:
import requests
import json
from os.path import dirname, join, normpath
import os
r = requests.put (
'http://127.0.0.1:1110',
data = json.dumps ({
"START": "ED448 SIGN",
"FIELDS": {
"PRIVATE KEY PATH": normpath (join (os.getcwd (), "ED448_PRIVATE_KEY.DER")),
"UNSIGNED BYTES PATH": normpath (join (os.getcwd (), "UNSIGNED.UTF8")),
"SIGNED BYTES PATH": normpath (join (os.getcwd (), "SIGNED.BYTES")),
}
})
)
print (r.text)
VERIFY:
import requests
import json
from os.path import dirname, join, normpath
import os
r = requests.put (
'http://127.0.0.1:1110',
data = json.dumps ({
"START": "ED448 VERIFY",
"FIELDS": {
"PUBLIC KEY PATH": normpath (join (os.getcwd (), "ED448_PUBLIC_KEY.DER")),
"UNSIGNED BYTES PATH": normpath (join (os.getcwd (), "UNSIGNED.UTF8")),
"SIGNED BYTES PATH": normpath (join (os.getcwd (), "SIGNED.BYTES")),
}
})
)
print (r.text)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ENCHUFLA-0.1.3.tar.gz
(12.2 kB
view details)
Built Distribution
ENCHUFLA-0.1.3-py3-none-any.whl
(23.3 kB
view details)
File details
Details for the file ENCHUFLA-0.1.3.tar.gz
.
File metadata
- Download URL: ENCHUFLA-0.1.3.tar.gz
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1f344422ecc17405d3805c38a65758a5b03ce55c9ed9b633a07b52cb8db8112 |
|
MD5 | 8ea80ae69f6989e5ff491c8d6dc22cbd |
|
BLAKE2b-256 | 4fca368b014552e3450e3049343a5e6b983eef69143ae31bfb1ba665d96fe2ac |
File details
Details for the file ENCHUFLA-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: ENCHUFLA-0.1.3-py3-none-any.whl
- Upload date:
- Size: 23.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3081e93315d8820b2a814984a1a88de23dbd9096a0d210f94f95cedbcd152d3 |
|
MD5 | 2cd550aa125fba462d068d93a88ef8f1 |
|
BLAKE2b-256 | 63d26859bfc00cbea9e71ab80451c4c05cc379da6687104b55a5731ca89ac301 |