httk.core.crypto module
Provides a few central and very helpful functions for cryptographic hashes, etc.
-
httk.core.crypto.
generate_keys
(public_key_path, secret_key_path)[source]
Generates a public and a private key pair and stores them in respective files
-
httk.core.crypto.
get_crypto_signature
(message, secret_key=None, keyfile=None)[source]
-
httk.core.crypto.
hexhash_ioa
(ioa, prepend=None)[source]
-
httk.core.crypto.
hexhash_str
(data, prepend=None)[source]
-
httk.core.crypto.
main
()[source]
-
httk.core.crypto.
manifest_dir
(basedir, manifestfile, excludespath, keydir, sk, pk, debug=False, force=False)[source]
-
httk.core.crypto.
read_keys
(keydir)[source]
-
httk.core.crypto.
sha256file
(filename)[source]
-
httk.core.crypto.
tuple_to_hexhash
(t)[source]
-
httk.core.crypto.
tuple_to_str
(t)[source]
-
httk.core.crypto.
verify_crytpo_signature
(signature, message, public_key=None, keyfile=None)[source]
-
httk.core.crypto.
verify_crytpo_signature_old
(signature, message, public_key_path)[source]