summaryrefslogtreecommitdiff
path: root/src/bcrypt/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
* allow null bytes in inputs (#328)Shivaram Lingamneni2022-07-231-8/+0
|
* Remove regexp shenanigins (#354)Alex Gaynor2022-06-251-21/+1
| | | They aren't required now that we no longer use the OpenBSD library
* Switch to a Rust implementation of cryptographic primitives (#294)Alex Gaynor2022-05-011-21/+5
|
* Move most setup.py configuration into setup.cfg (#293)Alex Gaynor2022-02-211-1/+1
|
* Use hmac.compare_digest for our constant time comparison (#292)Alex Gaynor2022-02-211-5/+2
|
* format with latest black (#287)Alex Gaynor2022-01-291-1/+1
|
* Drop six dependency (#225)Eugene2020-08-171-10/+6
| | | | | * Drop six dependency * Resolve formatting error
* add: type hints to top level functions (#218)Steve Dignam2020-08-131-6/+12
| | | | | | | | | | | | | | | | | | | | | * WIP: add type hints to top level functions TODO: - see if mypy picks up types when installing in new project - setup mypy in CI fixes https://github.com/pyca/bcrypt/issues/215 * add mypy to ci & move py.typed to correct folder? * try and get mypy to run in CI * run mypy in travis? * use mypy defaults for python_version and platform https://mypy.readthedocs.io/en/stable/config_file.html#platform-configuration * update change log with changes
* Paint it Black by the Rolling Stones (#208)Alex Gaynor2020-07-231-13/+34
|
* Use a relative import. (#147)David Manthey2018-07-121-2/+1
| | | | | | Use an application relative import when importing _bcrypt. This allows the package to work even in odd locations, such as `pip install --target . bcrypt` (rather than in the site-packages or user packages directory).
* put a stacklevel on this warning (#136)Alex Gaynor2017-12-041-1/+3
|
* Fixed #122 -- added checkpw to __all__ so it shows up in docs (#123)Alex Gaynor2017-08-261-1/+1
|
* Warn upon too few bcrypt.kdf() rounds (#104)Luc Gommans2017-01-211-1/+12
| | | | | | | | | | | | * Warn upon too few bcrypt.kdf() rounds * Use warings library instead of sys.stderr * Add test for changes * Test new kdf parameter for coverage * Formatting & py26 compatibility
* Fix "invalid escape sequence" warnings on Python 3.6 (#98)Tim Graham2016-12-081-1/+1
|
* Correctly handle invalid hashed passwords in bcrypt.checkpw. (#95)Alex Gaynor2016-10-021-0/+3
| | | | | Previously it would silently accept extra data, and overread a buffer on truncated data. Reported by Matthew Russell
* we should use the right type for our buffers. fixes a cffi warning (#92)Paul Kehrer2016-09-171-2/+2
|
* Inputing a 2y salt should output a 2y hash (#84)Donald Stufft2016-06-301-9/+14
|
* Restore compatibility with 2.0.0's fix for wraparound bug (#81)Paul Kehrer2016-06-301-0/+8
|
* Add checkpw (#76)Paul Kehrer2016-06-291-0/+18
|
* Add bcrypt pbkdf support (#70)Paul Kehrer2016-06-271-1/+28
| | | | | | | | * add bcrypt_pbkdf support * bytes! * some docs
* Convert bcrypt to use OpenBSD code (#68)Paul Kehrer2016-06-271-9/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * swap to using openbsd bcrypt * we should probably call this 3.0 * update tests to handle slight change in behavior, test better * strip out code we're not using * define this for linux * py3 fix * add a changelog to the readme * maybe work with windows * portable endian header, replace swaps, other windows fixes * handle older windows compilers properly, handle glibc < 2.9, retab * remove a todo, that's definitely the limit * make these definitions conditional since some BSDs may already have them * add $2a$ tests from crypt_blowfish-1.3 * update readme to note supported prefixes * almost pointless commit * add support for $2y$ test vectors from openwall crypt-blowfish1.3
* Add prefix option to gensalt() - default to "2b"jazzyb2015-06-121-2/+5
|
* Migrate to using CFFI 1.0Donald Stufft2015-06-111-0/+65
* Move everything under src/ to ensure we test against the installed library. * Create a build_bcrypt.py script which will build _bcrypt.so. * Refactor to utilize the new _bcrypt.so instead of implicit compile.