libpass 1.8.0__tar.gz → 1.8.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (255) hide show
  1. libpass-1.8.2/.git-blame-ignore-revs +2 -0
  2. libpass-1.8.2/.github/workflows/lint.yaml +32 -0
  3. libpass-1.8.2/.github/workflows/publish.yml +31 -0
  4. libpass-1.8.2/.github/workflows/test.yaml +29 -0
  5. libpass-1.8.2/.gitignore +10 -0
  6. libpass-1.8.2/CHANGELOG.md +84 -0
  7. {libpass-1.8.0 → libpass-1.8.2}/PKG-INFO +15 -13
  8. libpass-1.8.2/Taskfile.yml +67 -0
  9. libpass-1.8.2/docs/_fragments/asa_verify_callout.rst +15 -0
  10. libpass-1.8.2/docs/_fragments/insecure_hash_warning.rst +9 -0
  11. libpass-1.8.2/docs/_fragments/trivial_hash_warning.rst +8 -0
  12. libpass-1.8.2/docs/_static/bb-logo.png +0 -0
  13. libpass-1.8.2/docs/_static/bb-logo.svg +929 -0
  14. libpass-1.8.2/docs/_static/logo-128.png +0 -0
  15. libpass-1.8.2/docs/_static/logo-64.png +0 -0
  16. libpass-1.8.2/docs/_static/logo.ico +0 -0
  17. libpass-1.8.2/docs/_static/logo.png +0 -0
  18. libpass-1.8.2/docs/_static/logo.svg +297 -0
  19. libpass-1.8.2/docs/_static/masthead.png +0 -0
  20. libpass-1.8.2/docs/_static/masthead.svg +413 -0
  21. libpass-1.8.2/docs/conf.py +318 -0
  22. libpass-1.8.2/docs/contents.rst +14 -0
  23. libpass-1.8.2/docs/copyright.rst +1 -0
  24. libpass-1.8.2/docs/dev-requirements.txt +1 -0
  25. libpass-1.8.2/docs/faq.rst +75 -0
  26. libpass-1.8.2/docs/history/1.5.rst +173 -0
  27. libpass-1.8.2/docs/history/1.6.rst +400 -0
  28. libpass-1.8.2/docs/history/1.7.rst +549 -0
  29. libpass-1.8.2/docs/history/1.8.rst +94 -0
  30. libpass-1.8.2/docs/history/ancient.rst +126 -0
  31. libpass-1.8.2/docs/history/index.rst +46 -0
  32. libpass-1.8.2/docs/history.rst +8 -0
  33. libpass-1.8.2/docs/index.rst +108 -0
  34. libpass-1.8.2/docs/install.rst +158 -0
  35. libpass-1.8.2/docs/lib/index.rst +55 -0
  36. libpass-1.8.2/docs/lib/passlib.apache.rst +86 -0
  37. libpass-1.8.2/docs/lib/passlib.apps.rst +255 -0
  38. libpass-1.8.2/docs/lib/passlib.context-tutorial.rst +8 -0
  39. libpass-1.8.2/docs/lib/passlib.context.rst +509 -0
  40. libpass-1.8.2/docs/lib/passlib.crypto.des.rst +26 -0
  41. libpass-1.8.2/docs/lib/passlib.crypto.digest.rst +48 -0
  42. libpass-1.8.2/docs/lib/passlib.crypto.rst +18 -0
  43. libpass-1.8.2/docs/lib/passlib.exc.rst +49 -0
  44. libpass-1.8.2/docs/lib/passlib.ext.django.rst +199 -0
  45. libpass-1.8.2/docs/lib/passlib.hash.apr_md5_crypt.rst +45 -0
  46. libpass-1.8.2/docs/lib/passlib.hash.argon2.rst +127 -0
  47. libpass-1.8.2/docs/lib/passlib.hash.atlassian_pbkdf2_sha1.rst +58 -0
  48. libpass-1.8.2/docs/lib/passlib.hash.bcrypt.rst +232 -0
  49. libpass-1.8.2/docs/lib/passlib.hash.bcrypt_sha256.rst +83 -0
  50. libpass-1.8.2/docs/lib/passlib.hash.bigcrypt.rst +149 -0
  51. libpass-1.8.2/docs/lib/passlib.hash.bsdi_crypt.rst +157 -0
  52. libpass-1.8.2/docs/lib/passlib.hash.cisco_asa.rst +20 -0
  53. libpass-1.8.2/docs/lib/passlib.hash.cisco_pix.rst +205 -0
  54. libpass-1.8.2/docs/lib/passlib.hash.cisco_type7.rst +129 -0
  55. libpass-1.8.2/docs/lib/passlib.hash.crypt16.rst +119 -0
  56. libpass-1.8.2/docs/lib/passlib.hash.cta_pbkdf2_sha1.rst +61 -0
  57. libpass-1.8.2/docs/lib/passlib.hash.des_crypt.rst +141 -0
  58. libpass-1.8.2/docs/lib/passlib.hash.django_std.rst +268 -0
  59. libpass-1.8.2/docs/lib/passlib.hash.dlitz_pbkdf2_sha1.rst +76 -0
  60. libpass-1.8.2/docs/lib/passlib.hash.fshp.rst +123 -0
  61. libpass-1.8.2/docs/lib/passlib.hash.grub_pbkdf2_sha512.rst +80 -0
  62. libpass-1.8.2/docs/lib/passlib.hash.hex_digests.rst +65 -0
  63. libpass-1.8.2/docs/lib/passlib.hash.ldap_crypt.rst +65 -0
  64. libpass-1.8.2/docs/lib/passlib.hash.ldap_other.rst +51 -0
  65. libpass-1.8.2/docs/lib/passlib.hash.ldap_pbkdf2_digest.rst +38 -0
  66. libpass-1.8.2/docs/lib/passlib.hash.ldap_std.rst +127 -0
  67. libpass-1.8.2/docs/lib/passlib.hash.lmhash.rst +162 -0
  68. libpass-1.8.2/docs/lib/passlib.hash.md5_crypt.rst +206 -0
  69. libpass-1.8.2/docs/lib/passlib.hash.msdcc.rst +95 -0
  70. libpass-1.8.2/docs/lib/passlib.hash.msdcc2.rst +106 -0
  71. libpass-1.8.2/docs/lib/passlib.hash.mssql2000.rst +94 -0
  72. libpass-1.8.2/docs/lib/passlib.hash.mssql2005.rst +83 -0
  73. libpass-1.8.2/docs/lib/passlib.hash.mysql323.rst +65 -0
  74. libpass-1.8.2/docs/lib/passlib.hash.mysql41.rst +46 -0
  75. libpass-1.8.2/docs/lib/passlib.hash.nthash.rst +77 -0
  76. libpass-1.8.2/docs/lib/passlib.hash.oracle10.rst +113 -0
  77. libpass-1.8.2/docs/lib/passlib.hash.oracle11.rst +78 -0
  78. libpass-1.8.2/docs/lib/passlib.hash.pbkdf2_digest.rst +110 -0
  79. libpass-1.8.2/docs/lib/passlib.hash.phpass.rst +76 -0
  80. libpass-1.8.2/docs/lib/passlib.hash.plaintext.rst +34 -0
  81. libpass-1.8.2/docs/lib/passlib.hash.postgres_md5.rst +69 -0
  82. libpass-1.8.2/docs/lib/passlib.hash.rst +323 -0
  83. libpass-1.8.2/docs/lib/passlib.hash.scram.rst +171 -0
  84. libpass-1.8.2/docs/lib/passlib.hash.scrypt.rst +128 -0
  85. libpass-1.8.2/docs/lib/passlib.hash.sha1_crypt.rst +117 -0
  86. libpass-1.8.2/docs/lib/passlib.hash.sha256_crypt.rst +141 -0
  87. libpass-1.8.2/docs/lib/passlib.hash.sha512_crypt.rst +46 -0
  88. libpass-1.8.2/docs/lib/passlib.hash.sun_md5_crypt.rst +195 -0
  89. libpass-1.8.2/docs/lib/passlib.hash.unix_disabled.rst +43 -0
  90. libpass-1.8.2/docs/lib/passlib.hosts.rst +135 -0
  91. libpass-1.8.2/docs/lib/passlib.ifc.rst +719 -0
  92. libpass-1.8.2/docs/lib/passlib.pwd.rst +52 -0
  93. libpass-1.8.2/docs/lib/passlib.registry.rst +71 -0
  94. libpass-1.8.2/docs/lib/passlib.totp.rst +189 -0
  95. libpass-1.8.2/docs/lib/passlib.utils.binary.rst +89 -0
  96. libpass-1.8.2/docs/lib/passlib.utils.compat.rst +61 -0
  97. libpass-1.8.2/docs/lib/passlib.utils.des.rst +20 -0
  98. libpass-1.8.2/docs/lib/passlib.utils.handlers.rst +211 -0
  99. libpass-1.8.2/docs/lib/passlib.utils.pbkdf2.rst +35 -0
  100. libpass-1.8.2/docs/lib/passlib.utils.rst +155 -0
  101. libpass-1.8.2/docs/modular_crypt_format.rst +234 -0
  102. libpass-1.8.2/docs/narr/context-tutorial.rst +550 -0
  103. libpass-1.8.2/docs/narr/hash-tutorial.rst +327 -0
  104. libpass-1.8.2/docs/narr/index.rst +30 -0
  105. libpass-1.8.2/docs/narr/overview.rst +92 -0
  106. libpass-1.8.2/docs/narr/quickstart.rst +297 -0
  107. libpass-1.8.2/docs/narr/totp-tutorial.rst +772 -0
  108. libpass-1.8.2/docs/new_app_quickstart.rst +8 -0
  109. libpass-1.8.2/docs/other.rst +14 -0
  110. libpass-1.8.2/docs/overview.rst +8 -0
  111. libpass-1.8.2/docs/password_hash_api.rst +8 -0
  112. libpass-1.8.2/docs/requirements.txt +2 -0
  113. libpass-1.8.2/libpass/__init__.py +0 -0
  114. libpass-1.8.2/libpass/_salt.py +14 -0
  115. libpass-1.8.2/libpass/_utils/__init__.py +0 -0
  116. libpass-1.8.2/libpass/_utils/base64.py +14 -0
  117. libpass-1.8.2/libpass/_utils/binary.py +139 -0
  118. libpass-1.8.2/libpass/_utils/bytes.py +11 -0
  119. libpass-1.8.2/libpass/_utils/const.py +2 -0
  120. libpass-1.8.2/libpass/_utils/deprecated.py +66 -0
  121. libpass-1.8.2/libpass/_utils/protocols.py +31 -0
  122. libpass-1.8.2/libpass/_utils/str.py +9 -0
  123. libpass-1.8.2/libpass/_utils/validation.py +4 -0
  124. libpass-1.8.2/libpass/context.py +52 -0
  125. libpass-1.8.2/libpass/errors.py +2 -0
  126. libpass-1.8.2/libpass/hashers/__init__.py +0 -0
  127. libpass-1.8.2/libpass/hashers/abc.py +17 -0
  128. libpass-1.8.2/libpass/hashers/argon2.py +48 -0
  129. libpass-1.8.2/libpass/hashers/bcrypt.py +137 -0
  130. libpass-1.8.2/libpass/hashers/django.py +42 -0
  131. libpass-1.8.2/libpass/hashers/pbkdf2.py +117 -0
  132. libpass-1.8.2/libpass/hashers/sha_crypt.py +358 -0
  133. libpass-1.8.2/libpass/inspect/__init__.py +0 -0
  134. libpass-1.8.2/libpass/inspect/bcrypt.py +36 -0
  135. libpass-1.8.2/libpass/inspect/django.py +20 -0
  136. libpass-1.8.2/libpass/inspect/pbkdf2.py +56 -0
  137. libpass-1.8.2/libpass/inspect/phc/__init__.py +3 -0
  138. libpass-1.8.2/libpass/inspect/phc/_phc.py +144 -0
  139. libpass-1.8.2/libpass/inspect/phc/defs.py +33 -0
  140. libpass-1.8.2/libpass/inspect/sha_crypt.py +59 -0
  141. libpass-1.8.2/libpass/py.typed +0 -0
  142. {libpass-1.8.0 → libpass-1.8.2}/passlib/__init__.py +3 -3
  143. {libpass-1.8.0 → libpass-1.8.2}/passlib/context.py +0 -9
  144. {libpass-1.8.0 → libpass-1.8.2}/passlib/crypto/digest.py +7 -5
  145. {libpass-1.8.0 → libpass-1.8.2}/passlib/crypto/scrypt/__init__.py +1 -1
  146. {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/argon2.py +9 -8
  147. {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/bcrypt.py +11 -7
  148. {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/des_crypt.py +3 -3
  149. {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/django.py +10 -4
  150. {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/fshp.py +6 -1
  151. {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/ldap_digests.py +12 -6
  152. {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/pbkdf2.py +4 -4
  153. {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/phpass.py +1 -1
  154. {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/scram.py +1 -1
  155. {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/scrypt.py +1 -1
  156. {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/sha1_crypt.py +7 -2
  157. {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/sha2_crypt.py +9 -2
  158. {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/sun_md5_crypt.py +1 -1
  159. {libpass-1.8.0 → libpass-1.8.2}/passlib/hash.py +2 -2
  160. {libpass-1.8.0 → libpass-1.8.2}/passlib/ifc.py +3 -1
  161. {libpass-1.8.0 → libpass-1.8.2}/passlib/pwd.py +2 -2
  162. {libpass-1.8.0 → libpass-1.8.2}/passlib/totp.py +1 -1
  163. {libpass-1.8.0 → libpass-1.8.2}/passlib/utils/__init__.py +6 -4
  164. {libpass-1.8.0 → libpass-1.8.2}/passlib/utils/binary.py +2 -0
  165. {libpass-1.8.0 → libpass-1.8.2}/passlib/utils/handlers.py +21 -14
  166. {libpass-1.8.0 → libpass-1.8.2}/passlib/utils/pbkdf2.py +2 -2
  167. {libpass-1.8.0 → libpass-1.8.2}/pyproject.toml +59 -61
  168. libpass-1.8.2/tests/libpass/__init__.py +0 -0
  169. libpass-1.8.2/tests/libpass/hashers/__init__.py +0 -0
  170. libpass-1.8.2/tests/libpass/hashers/test_argon2.py +213 -0
  171. libpass-1.8.2/tests/libpass/hashers/test_bcrypt.py +165 -0
  172. libpass-1.8.2/tests/libpass/hashers/test_bcrypt_sha256.py +115 -0
  173. libpass-1.8.2/tests/libpass/hashers/test_django.py +111 -0
  174. libpass-1.8.2/tests/libpass/hashers/test_pbkdf2.py +139 -0
  175. libpass-1.8.2/tests/libpass/hashers/test_sha_crypt.py +309 -0
  176. libpass-1.8.2/tests/libpass/inspect/__init__.py +0 -0
  177. libpass-1.8.2/tests/libpass/inspect/test_inspect.py +77 -0
  178. libpass-1.8.2/tests/libpass/test_arch.py +10 -0
  179. libpass-1.8.2/tests/libpass/test_context.py +73 -0
  180. {libpass-1.8.0 → libpass-1.8.2}/tests/sample1b.cfg +9 -9
  181. {libpass-1.8.0 → libpass-1.8.2}/tests/test_crypto_scrypt.py +3 -1
  182. {libpass-1.8.0 → libpass-1.8.2}/tests/test_handlers_argon2.py +2 -2
  183. {libpass-1.8.0 → libpass-1.8.2}/tests/test_handlers_bcrypt.py +2 -2
  184. {libpass-1.8.0 → libpass-1.8.2}/tests/test_utils.py +10 -4
  185. {libpass-1.8.0 → libpass-1.8.2}/tests/utils.py +16 -13
  186. libpass-1.8.2/tox.ini +203 -0
  187. libpass-1.8.2/uv.lock +1230 -0
  188. libpass-1.8.0/passlib/_setup/__init__.py +0 -1
  189. libpass-1.8.0/passlib/_setup/stamp.py +0 -145
  190. {libpass-1.8.0 → libpass-1.8.2}/LICENSE +0 -0
  191. {libpass-1.8.0 → libpass-1.8.2}/README.md +0 -0
  192. {libpass-1.8.0 → libpass-1.8.2}/passlib/_data/wordsets/bip39.txt +0 -0
  193. {libpass-1.8.0 → libpass-1.8.2}/passlib/_data/wordsets/eff_long.txt +0 -0
  194. {libpass-1.8.0 → libpass-1.8.2}/passlib/_data/wordsets/eff_prefixed.txt +0 -0
  195. {libpass-1.8.0 → libpass-1.8.2}/passlib/_data/wordsets/eff_short.txt +0 -0
  196. {libpass-1.8.0 → libpass-1.8.2}/passlib/apache.py +0 -0
  197. {libpass-1.8.0 → libpass-1.8.2}/passlib/apps.py +0 -0
  198. {libpass-1.8.0 → libpass-1.8.2}/passlib/crypto/__init__.py +0 -0
  199. {libpass-1.8.0 → libpass-1.8.2}/passlib/crypto/_blowfish/__init__.py +0 -0
  200. {libpass-1.8.0 → libpass-1.8.2}/passlib/crypto/_blowfish/_gen_files.py +0 -0
  201. {libpass-1.8.0 → libpass-1.8.2}/passlib/crypto/_blowfish/base.py +0 -0
  202. {libpass-1.8.0 → libpass-1.8.2}/passlib/crypto/_blowfish/unrolled.py +0 -0
  203. {libpass-1.8.0 → libpass-1.8.2}/passlib/crypto/_md4.py +0 -0
  204. {libpass-1.8.0 → libpass-1.8.2}/passlib/crypto/des.py +0 -0
  205. {libpass-1.8.0 → libpass-1.8.2}/passlib/crypto/scrypt/_builtin.py +0 -0
  206. {libpass-1.8.0 → libpass-1.8.2}/passlib/crypto/scrypt/_gen_files.py +0 -0
  207. {libpass-1.8.0 → libpass-1.8.2}/passlib/crypto/scrypt/_salsa.py +0 -0
  208. {libpass-1.8.0 → libpass-1.8.2}/passlib/exc.py +0 -0
  209. {libpass-1.8.0 → libpass-1.8.2}/passlib/ext/__init__.py +0 -0
  210. {libpass-1.8.0 → libpass-1.8.2}/passlib/ext/django/__init__.py +0 -0
  211. {libpass-1.8.0 → libpass-1.8.2}/passlib/ext/django/models.py +0 -0
  212. {libpass-1.8.0 → libpass-1.8.2}/passlib/ext/django/utils.py +0 -0
  213. {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/__init__.py +0 -0
  214. {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/cisco.py +0 -0
  215. {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/digests.py +0 -0
  216. {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/md5_crypt.py +0 -0
  217. {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/misc.py +0 -0
  218. {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/mssql.py +0 -0
  219. {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/mysql.py +0 -0
  220. {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/oracle.py +0 -0
  221. {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/postgres.py +0 -0
  222. {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/roundup.py +0 -0
  223. {libpass-1.8.0 → libpass-1.8.2}/passlib/handlers/windows.py +0 -0
  224. {libpass-1.8.0 → libpass-1.8.2}/passlib/hosts.py +0 -0
  225. {libpass-1.8.0 → libpass-1.8.2}/passlib/registry.py +0 -0
  226. {libpass-1.8.0 → libpass-1.8.2}/passlib/utils/compat/__init__.py +0 -0
  227. {libpass-1.8.0 → libpass-1.8.2}/passlib/utils/decor.py +0 -0
  228. {libpass-1.8.0 → libpass-1.8.2}/passlib/utils/des.py +0 -0
  229. {libpass-1.8.0 → libpass-1.8.2}/passlib/utils/md4.py +0 -0
  230. {libpass-1.8.0 → libpass-1.8.2}/tests/__init__.py +0 -0
  231. {libpass-1.8.0 → libpass-1.8.2}/tests/_test_bad_register.py +0 -0
  232. {libpass-1.8.0 → libpass-1.8.2}/tests/sample1.cfg +0 -0
  233. {libpass-1.8.0 → libpass-1.8.2}/tests/sample1c.cfg +0 -0
  234. {libpass-1.8.0 → libpass-1.8.2}/tests/sample_config_1s.cfg +0 -0
  235. {libpass-1.8.0 → libpass-1.8.2}/tests/test_apache.py +0 -0
  236. {libpass-1.8.0 → libpass-1.8.2}/tests/test_apache_pytest.py +0 -0
  237. {libpass-1.8.0 → libpass-1.8.2}/tests/test_apps.py +0 -0
  238. {libpass-1.8.0 → libpass-1.8.2}/tests/test_context.py +0 -0
  239. {libpass-1.8.0 → libpass-1.8.2}/tests/test_crypto_builtin_md4.py +0 -0
  240. {libpass-1.8.0 → libpass-1.8.2}/tests/test_crypto_des.py +0 -0
  241. {libpass-1.8.0 → libpass-1.8.2}/tests/test_crypto_digest.py +0 -0
  242. {libpass-1.8.0 → libpass-1.8.2}/tests/test_ext_django.py +0 -0
  243. {libpass-1.8.0 → libpass-1.8.2}/tests/test_handlers.py +0 -0
  244. {libpass-1.8.0 → libpass-1.8.2}/tests/test_handlers_cisco.py +0 -0
  245. {libpass-1.8.0 → libpass-1.8.2}/tests/test_handlers_django.py +0 -0
  246. {libpass-1.8.0 → libpass-1.8.2}/tests/test_handlers_pbkdf2.py +0 -0
  247. {libpass-1.8.0 → libpass-1.8.2}/tests/test_handlers_scrypt.py +0 -0
  248. {libpass-1.8.0 → libpass-1.8.2}/tests/test_hosts.py +0 -0
  249. {libpass-1.8.0 → libpass-1.8.2}/tests/test_pwd.py +0 -0
  250. {libpass-1.8.0 → libpass-1.8.2}/tests/test_registry.py +0 -0
  251. {libpass-1.8.0 → libpass-1.8.2}/tests/test_totp.py +0 -0
  252. {libpass-1.8.0 → libpass-1.8.2}/tests/test_utils_handlers.py +0 -0
  253. {libpass-1.8.0 → libpass-1.8.2}/tests/test_utils_md4.py +0 -0
  254. {libpass-1.8.0 → libpass-1.8.2}/tests/test_utils_pbkdf2.py +0 -0
  255. {libpass-1.8.0 → libpass-1.8.2}/tests/utils_.py +0 -0
@@ -0,0 +1,2 @@
1
+ # ruff format .
2
+ f7e9780bd9963cbe569c99e9825d7d5f86ee10ef
@@ -0,0 +1,32 @@
1
+ name: Lint
2
+ on: [push, pull_request]
3
+ jobs:
4
+ lint:
5
+ runs-on: ubuntu-latest
6
+ strategy:
7
+ fail-fast: false
8
+ matrix:
9
+ python-version:
10
+ - 3.12
11
+ job:
12
+ - deptry .
13
+ - mypy .
14
+ - ruff format --check .
15
+ - ruff check .
16
+
17
+ steps:
18
+ - uses: actions/checkout@v4
19
+ - name: Set up Python
20
+ uses: actions/setup-python@v5
21
+ with:
22
+ python-version: ${{ matrix.python-version }}
23
+
24
+ - name: Install uv
25
+ uses: astral-sh/setup-uv@v3
26
+ with:
27
+ enable-cache: true
28
+
29
+ - name: Install dependencies
30
+ run: uv sync --all-extras --all-groups
31
+
32
+ - run: uv run ${{ matrix.job }}
@@ -0,0 +1,31 @@
1
+ name: Publish to PyPi
2
+ on:
3
+ release:
4
+ types:
5
+ - published
6
+
7
+ jobs:
8
+ publish:
9
+ runs-on: ubuntu-latest
10
+ environment: pypi
11
+ permissions:
12
+ id-token: write
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+ - name: Set up Python
16
+ uses: actions/setup-python@v5
17
+ with:
18
+ python-version: 3.12.7
19
+ - name: Install uv
20
+ uses: astral-sh/setup-uv@v3
21
+ with:
22
+ enable-cache: true
23
+
24
+ - name: Install dependencies
25
+ run: uv sync --all-extras --dev
26
+
27
+ - name: Build
28
+ run: uv build
29
+
30
+ - name: Publish
31
+ run: uv publish
@@ -0,0 +1,29 @@
1
+ name: Test
2
+ on: [push, pull_request]
3
+ jobs:
4
+ test:
5
+ runs-on: ubuntu-latest
6
+ strategy:
7
+ fail-fast: false
8
+ matrix:
9
+ python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
10
+
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+ - name: Set up Python ${{ matrix.python-version }}
14
+ uses: actions/setup-python@v5
15
+ with:
16
+ python-version: ${{ matrix.python-version }}
17
+
18
+ - name: Install uv
19
+ uses: astral-sh/setup-uv@v3
20
+ with:
21
+ enable-cache: true
22
+
23
+ - name: Install dependencies
24
+ run: uv sync --all-extras --all-groups
25
+
26
+ - run: |
27
+ uv run coverage run
28
+ uv run coverage report -m
29
+ uv run coverage xml
@@ -0,0 +1,10 @@
1
+ .idea
2
+
3
+ .pdm-python
4
+
5
+ __pycache__
6
+
7
+ .coverage
8
+ coverage.xml
9
+
10
+ dist
@@ -0,0 +1,84 @@
1
+ ## 1.8.0 (2024-09-24)
2
+
3
+ ### Fix
4
+ - add python 3.13 compatability
5
+
6
+ ### Refactor
7
+
8
+ - enable ruff "FURB" rule
9
+ - enable ruff "PERF" rule
10
+ - enable ruff "RSE" rule
11
+ - enable ruff "FA" rule
12
+ - enable ruff "ISC" rule
13
+ - enable ruff "SIM" rule
14
+ - enable ruff "PIE" rule
15
+ - enable ruff "G" rule
16
+ - enable RET ruff rule
17
+ - enable pyupgrade(UP) checks in ruff
18
+ - **tests/**: use pytest to capture warnings
19
+ - **utils**: improve typing
20
+ - remove jython and pypy compatiblity helpers, remove setup.py
21
+ - remove dependency on built-in crypt, use legacycrypt instead
22
+ - replace consteq and str_consteq implementations with hmac.compare_digest
23
+
24
+ ## 1.7.5.post0 (2024-09-11)
25
+
26
+ ## 1.7.5 (2024-09-11)
27
+
28
+ ### Fix
29
+
30
+ - **argon2.py**: use metadata.version to retrieve package version
31
+ - **bcrypt.py**: use importlib.metadata to get bcrypt version
32
+ - **bcrypt.py**: _calc_checksum call
33
+
34
+ ### Refactor
35
+
36
+ - fix some of ruff errors
37
+ - remove deprecated pkg_resources usage
38
+ - add ".git-blame-ignore-revs"
39
+ - add ruff, mypy and deptry
40
+ - cleanup
41
+ - use pdm for dependency management
42
+
43
+ ## 1.7.4 (2020-10-08)
44
+
45
+ ## 1.7.3 (2020-10-06)
46
+
47
+ ## 1.7.2 (2019-11-22)
48
+
49
+ ## 1.7.1 (2017-01-30)
50
+
51
+ ## 1.7.0 (2016-11-22)
52
+
53
+ ### Fix
54
+
55
+ - passlib.tests: added "test_handlers_argon2" to get_handler_case()
56
+ - handler test suite: avoid even rounds for bsdi_crypt
57
+
58
+ ## 1.6.5 (2015-08-04)
59
+
60
+ ## 1.6.4 (2015-07-25)
61
+
62
+ ## 1.6.2 (2013-12-26)
63
+
64
+ ## 1.6.1 (2012-08-02)
65
+
66
+ ## 1.6 (2012-05-17)
67
+
68
+ ## 1.5.3 (2011-10-08)
69
+
70
+ ## 1.5.2 (2011-09-19)
71
+
72
+ ## 1.5.1 (2011-08-17)
73
+
74
+ ## 1.5 (2011-07-11)
75
+
76
+ ## 1.4 (2011-05-04)
77
+
78
+ ## 1.3.1 (2011-03-28)
79
+
80
+ ## 1.3.0 (2011-03-25)
81
+
82
+ ## 1.2.0 (2011-01-17)
83
+
84
+ ## 1.1.0 (2011-01-07)
@@ -1,11 +1,17 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: libpass
3
- Version: 1.8.0
3
+ Version: 1.8.2
4
4
  Summary: Fork of passlib, a comprehensive password hashing framework supporting over 30 schemes
5
- Keywords: 2fa,apache,argon2,bcrypt,crypt,hash,htdigest,htpasswd,md5-crypt,passlib,password,pbkdf2,scrypt,secret,security,sha256-crypt,sha512-crypt,totp
6
- Author-Email: Eli Collins <elic@assurancetechnologies.com>
7
- Maintainer-Email: Doctor <thirvondukr@gmail.com>
5
+ Project-URL: Homepage, https://github.com/ThirVondukr/passlib
6
+ Project-URL: Repository, https://github.com/ThirVondukr/passlib
7
+ Project-URL: Docs, https://passlib.readthedocs.io
8
+ Project-URL: Issues, https://github.com/ThirVondukr/passlib/issues
9
+ Project-URL: Changelog, https://github.com/ThirVondukr/passlib/blob/main/CHANGELOG.md
10
+ Author-email: Eli Collins <elic@assurancetechnologies.com>
11
+ Maintainer-email: Doctor <thirvondukr@gmail.com>
8
12
  License: BSD
13
+ License-File: LICENSE
14
+ Keywords: 2fa,apache,argon2,bcrypt,crypt,hash,htdigest,htpasswd,md5-crypt,passlib,password,pbkdf2,scrypt,secret,security,sha256-crypt,sha512-crypt,totp
9
15
  Classifier: Development Status :: 3 - Alpha
10
16
  Classifier: Intended Audience :: Developers
11
17
  Classifier: License :: OSI Approved :: BSD License
@@ -20,19 +26,15 @@ Classifier: Programming Language :: Python :: 3.13
20
26
  Classifier: Programming Language :: Python :: Implementation :: CPython
21
27
  Classifier: Topic :: Security :: Cryptography
22
28
  Classifier: Topic :: Software Development :: Libraries
23
- Project-URL: Homepage, https://github.com/ThirVondukr/passlib
24
- Project-URL: Repository, https://github.com/ThirVondukr/passlib
25
- Project-URL: Docs, https://passlib.readthedocs.io
26
- Project-URL: Issues, https://github.com/ThirVondukr/passlib/issues
27
- Project-URL: Changelog, https://github.com/ThirVondukr/passlib/blob/main/CHANGELOG.md
28
29
  Requires-Python: >=3.9
29
30
  Requires-Dist: legacycrypt>=0.3
31
+ Requires-Dist: typing-extensions>=4.6.0
30
32
  Provides-Extra: argon2
31
- Requires-Dist: argon2-cffi>=18.2.0; extra == "argon2"
33
+ Requires-Dist: argon2-cffi>=18.2.0; extra == 'argon2'
32
34
  Provides-Extra: bcrypt
33
- Requires-Dist: bcrypt>=3.1.0; extra == "bcrypt"
35
+ Requires-Dist: bcrypt>=3.1.0; extra == 'bcrypt'
34
36
  Provides-Extra: totp
35
- Requires-Dist: cryptography>=43.0.1; extra == "totp"
37
+ Requires-Dist: cryptography>=43.0.1; extra == 'totp'
36
38
  Description-Content-Type: text/markdown
37
39
 
38
40
  # Passlib
@@ -0,0 +1,67 @@
1
+ version: "3"
2
+
3
+ vars:
4
+ RUNNER:
5
+ sh: 'echo {{ .RUNNER | default "uv run " }}'
6
+ SOURCES: .
7
+ SOURCES_ROOT: .
8
+
9
+ tasks:
10
+ default:
11
+ cmd:
12
+ task: all
13
+
14
+ lint:
15
+ desc: Lint python source files
16
+ cmds:
17
+ - "{{.RUNNER}} ruff check {{.SOURCES}}"
18
+ - "{{.RUNNER}} ruff format --check --diff {{.SOURCES}}"
19
+
20
+ format:
21
+ desc: Format python source files
22
+ aliases: ["fmt"]
23
+ cmds:
24
+ - "{{.RUNNER}} ruff format {{ .SOURCES }}"
25
+ - "{{.RUNNER}} ruff check --fix {{.SOURCES}}"
26
+
27
+ deptry:
28
+ desc: Check used dependencies with deptry
29
+ cmd: "{{.RUNNER}} deptry {{.SOURCES_ROOT}}"
30
+
31
+ typecheck:
32
+ desc: Perform type-checking
33
+ cmd: "{{.RUNNER}} mypy {{.SOURCES}}"
34
+
35
+ test:
36
+ desc: Run tests
37
+ cmd: "{{.RUNNER}} pytest -n auto"
38
+
39
+ testcov:
40
+ desc: Run tests and generate a coverage report
41
+ cmds:
42
+ - "{{.RUNNER}} coverage run"
43
+ - "{{.RUNNER}} coverage report -m"
44
+ - "{{.RUNNER}} coverage xml"
45
+
46
+ testcov-libpass:
47
+ cmds:
48
+ - "{{.RUNNER}} coverage run -m pytest -v tests/libpass"
49
+ - '{{.RUNNER}} coverage report -m --include "libpass/*"'
50
+ - "{{.RUNNER}} coverage xml"
51
+
52
+ libpass:
53
+ vars:
54
+ SOURCES: libpass tests/libpass
55
+ cmds:
56
+ - task: format
57
+ - "{{.RUNNER}} mypy {{.SOURCES}}"
58
+ - "{{.RUNNER}} pytest tests/libpass"
59
+
60
+
61
+ all:
62
+ desc: Run the standard set of checks performed in CI
63
+ cmds:
64
+ - task: format
65
+ - task: deptry
66
+ - task: typecheck
67
+ - task: test
@@ -0,0 +1,15 @@
1
+ .. rst-class:: float-right without-title
2
+
3
+ .. todo::
4
+
5
+ **Caveat Emptor**
6
+
7
+ Passlib's implementations of :class:`cisco_pix` and :class:`cisco_asa` both need verification.
8
+ For those with access to Cisco PIX and ASA systems, verifying Passlib's reference vectors
9
+ would be a great help (see :issue:`51`). In the mean time, there are no guarantees
10
+ that passlib correctly replicates the official implementation.
11
+
12
+ .. versionchanged:: 1.7.1
13
+
14
+ A number of :ref:`bugs <passlib-asa96-bug>` were fixed after expanding
15
+ the reference vectors, and testing against an ASA 9.6 system.
@@ -0,0 +1,9 @@
1
+ .. rst-class:: block-title
2
+
3
+ .. danger::
4
+
5
+ **This algorithm is not considered secure by modern standards.**
6
+ It should only be used when verifying existing hashes,
7
+ or when interacting with applications that require this format.
8
+ For new code, see the list of :ref:`recommended hashes <recommended-hashes>`.
9
+
@@ -0,0 +1,8 @@
1
+ .. rst-class:: block-title
2
+
3
+ .. danger::
4
+
5
+ **This algorithm is dangerously insecure by modern standards.**
6
+ It is trivially broken, and should not be used if at all possible.
7
+ For new code, see the list of :ref:`recommended hashes <recommended-hashes>`.
8
+
Binary file