-
Notifications
You must be signed in to change notification settings - Fork 349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError: Input strings must be a multiple of 16 in length #24
Comments
Hi, what is the version of your wallet? Is it bitcoin-core? |
Hi JackJack, |
Sorry, didn't get the notification For pycrypto, I don't get where the problem is as the data is padded using
Does the string has a size of a multiple of 16? It sounds like a Windows encoding-related bug but that's strange I never heard of that before Can you post the entire traceback of the crypto pure error? |
Hello JackJack, To be honest, I am not that skilled, not sure, how to check the padding. |
Hello,
I am a bit noob here, but trying to use pywallet to decrypt wallet.dat.
Password is right, I know, checked in corecrypto.
But when trying to dumpwallet with passphrase:
Traceback (most recent call last):
File "pywallet.py", line 3592, in
read_wallet(json_db, db_env, wallet_name, True, True, "", options.dumpbalanc
e is not None)
File "pywallet.py", line 2555, in read_wallet
secret = crypter.Decrypt(ckey)
File "pywallet.py", line 739, in Decrypt
return AES.new(self.chKey,AES.MODE_CBC,self.chIV).decrypt(data)[0:32]
File "D:\Bitcoin\Python\lib\site-packages\Crypto\Cipher\blockalgo.py", line 29
5, in decrypt
return self._cipher.decrypt(ciphertext)
ValueError: Input strings must be a multiple of 16 in length
I am running the python 2.7 with pycrypto and last pywallet from jackjack.
I know, the problem is probably not with pywallet, but AES, but any advice is very welcome.
p.s. running on windows.
Thanks! Dax
The text was updated successfully, but these errors were encountered: