Page MenuHomeSolus

Remove python2 support for python-pbkdf2
Needs ReviewPublic

Authored by algent on Fri, Jul 31, 9:38 PM.

Details

Reviewers
None
Group Reviewers
Triage Team
Summary

This package is required only by electrum which is built with python3.

Signed-off-by: Algent Albrahimi <algent@protonmail.com>

Test Plan
  • Run electrum and check wallet.
  • Run example:
>>> from pbkdf2 import crypt
>>> crypt("secret")
'$p5k2$$fJXmQUFV$P8Ame5C6UICUUoE/div12KfsSBsIcf7a'
>>> crypt("secret", "XXXXXXXX")
'$p5k2$$XXXXXXXX$L9mVVdq7upotdvtGvXTDTez3FIu3z0uG'
>>> crypt("secret", "XXXXXXXX", 400)  # 400 iterations (the default for crypt)
'$p5k2$$XXXXXXXX$L9mVVdq7upotdvtGvXTDTez3FIu3z0uG'
>>> crypt("spam", iterations=400)
'$p5k2$$KRViI6xT$iAVt/MstaC3z8PAg7WTm3skd6vKuphIB'
>>> crypt("spam", iterations=1000)    # 1000 iterations
'$p5k2$3e8$ymj2XjKg$iBVfVzm696MdFtRdYzfR3fVvL96kSQ/P'

Diff Detail

Repository
R2640 python-pbkdf2
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage

Event Timeline

algent created this revision.Fri, Jul 31, 9:38 PM
algent requested review of this revision.Fri, Jul 31, 9:38 PM
algent edited the test plan for this revision. (Show Details)Fri, Jul 31, 9:43 PM
algent updated this revision to Diff 22536.Fri, Jul 31, 9:53 PM

A better summary