Created
February 18, 2020 05:48
-
-
Save ashgkwd/0129d944b69bf6cd845158c4ef6ee6f3 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
import hashlib | |
passwd = "mywalletpassword" | |
salt = "summersaltstringwhichislong" | |
p = 1 | |
r = 8 | |
n = 262144 | |
dklen = 32 | |
dec_key = hashlib.scrypt(bytes(passwd, 'utf-8'), salt=bytes.fromhex(salt), n=n, r=r, p=p, maxmem=2000000000, dklen=dklen) | |
print(dec_key) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you know password of your wallet, you can export
keystore
json file. This file will havep
,r
,n
,dklen
andsalt
parameters needed to run this script.