spesmilo / spesmilo/electrum

Error: Incorrect padding

Open
#5,673 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

topic-walletstorage 💾
Dominant language
Python
Stars
8.6k
Forks
3.5k
Avg merge
2d 8h
Merged PRs (30d)
61

Description

Crash Report

This crash report was reported through the automatic crash reporting system 🤖

Traceback

  File "/home/user/wspace/electrum/.buildozer/android/platform/build/build/python-installs/Electrum/kivy/core/window/window_sdl2.py", line 746, in mainloop
  File "/home/user/wspace/electrum/.buildozer/android/platform/build/build/python-installs/Electrum/kivy/core/window/window_sdl2.py", line 478, in _mainloop
  File "/home/user/wspace/electrum/.buildozer/android/platform/build/build/python-installs/Electrum/kivy/base.py", line 339, in idle
  File "/home/user/wspace/electrum/.buildozer/android/platform/build/build/python-installs/Electrum/kivy/clock.py", line 591, in tick
  File "kivy/_clock.pyx", line 384, in kivy._clock.CyClockBase._process_events
  File "kivy/_clock.pyx", line 414, in kivy._clock.CyClockBase._process_events
  File "kivy/_clock.pyx", line 412, in kivy._clock.CyClockBase._process_events
  File "kivy/_clock.pyx", line 167, in kivy._clock.ClockEvent.tick
  File "/home/user/wspace/electrum/.buildozer/android/app/electrum/gui/kivy/uix/dialogs/password_dialog.py", line 106, in <lambda>
  File "/home/user/wspace/electrum/.buildozer/android/app/electrum/gui/kivy/main_window.py", line 1098, in on_success
  File "/home/user/wspace/electrum/.buildozer/android/app/electrum/wallet.py", line 1369, in update_password
  File "/home/user/wspace/electrum/.buildozer/android/app/electrum/wallet.py", line 1466, in _update_password_for_keystore
  File "/home/user/wspace/electrum/.buildozer/android/app/electrum/keystore.py", line 354, in update_password
  File "/home/user/wspace/electrum/.buildozer/android/app/electrum/keystore.py", line 349, in check_password
  File "/home/user/wspace/electrum/.buildozer/android/app/electrum/crypto.py", line 178, in pw_decode
  File "/home/user/wspace/electrum/.buildozer/android/platform/build/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_21/python3/Lib/base64.py", line 87, in b64decode

Error: Incorrect padding

Reporter

This issue was reported by 3 user(s):

Electrum Version Python Version Operating System Wallet Type Locale Stack
3.3.7 3.7.1 (default, Jul 3 2019, 16:41:59) [Clang 6.0.2 (https://android.googlesource.com/toolchain/clang 183abd29fc496f55 Android 10 on google taimen (QP1A.190711.020) standard en_US
3.3.7 3.7.1 (default, Jul 3 2019, 16:41:59) [Clang 6.0.2 (https://android.googlesource.com/toolchain/clang 183abd29fc496f55 Android 5.0.2 on ZTE P839F30 (GEN_EU_Blade_S6V1.0.0B15) standard en_US
3.3.7 3.7.1 (default, Jul 3 2019, 16:41:59) [Clang 6.0.2 (https://android.googlesource.com/toolchain/clang 183abd29fc496f55 Android 6.0.1 on Xiaomi santoni (MMB29M) standard en_US

Additional Information

the message is Sorry! I don't know more than that. I'm new beginner an learning how to use this


Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Android traceback in gui/kivy/uix/dialogs/password_dialog.py and follow the password-update path through wallet.py, keystore.py, and crypto.py, especially pw_decode and check_password. Reproduce the standard-wallet password update on Android and determine which stored value reaches base64.b64decode; done means the reported flow no longer raises Incorrect padding and has coverage for the failing case.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
mobile-dev, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.