Last active
August 29, 2015 13:57
-
-
Save BlackVoid/9746964 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Requires ecdsa | |
pip install ecdsa | |
""" | |
from binascii import unhexlify | |
from hashlib import sha256 | |
from ecdsa.keys import SigningKey | |
from ecdsa.curves import NIST256p | |
private = SigningKey.generate(NIST256p, hashfunc=sha256) | |
print("Private key: %s" % private.to_string().encode('hex')) | |
print("Public key: %s" % private.get_verifying_key().to_string().encode('hex')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment