This package is required only by electrum which is built with python3.
Signed-off-by: Algent Albrahimi <algent@protonmail.com>
Differential D9347
Remove python2 support for python-pbkdf2 Authored by algent on Jul 31 2020, 9:38 PM. Tags None Referenced Files
Subscribers
Details
This package is required only by electrum which is built with python3. Signed-off-by: Algent Albrahimi <algent@protonmail.com>
>>> 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
|