diff options
author | Eli Collins <elic@assurancetechnologies.com> | 2012-03-12 22:44:22 -0400 |
---|---|---|
committer | Eli Collins <elic@assurancetechnologies.com> | 2012-03-12 22:44:22 -0400 |
commit | e89ebdf93b92dc018bd3ee1542cc4416b5024ab4 (patch) | |
tree | 49afbf5441e910c2667dd0cb1e8a075467ad857d /passlib/exc.py | |
parent | ca830cd76a655f20488aebd082aba1a320e230d0 (diff) | |
download | passlib-e89ebdf93b92dc018bd3ee1542cc4416b5024ab4.tar.gz |
bcrypt work
* added code to shoehorn $2$-support wrapper for bcryptor backend
* added PasslibSecurityWarning when builtin backend is enabled
(still considered whether it should be enabled by default)
* py3 compat fix for repair_unused
Diffstat (limited to 'passlib/exc.py')
-rw-r--r-- | passlib/exc.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/passlib/exc.py b/passlib/exc.py index 0192951..cb158e7 100644 --- a/passlib/exc.py +++ b/passlib/exc.py @@ -56,6 +56,14 @@ class PasslibRuntimeWarning(PasslibWarning): that the developers would love to hear under what conditions it occurred. """ +class PasslibSecurityWarning(PasslibWarning): + """Special warning issued when Passlib encounters something + that might affect security. + + The main reason this is issued is when Passlib's pure-python bcrypt + backend is used, to warn that it's 20x too slow to acheive real security. + """ + #========================================================================== # eof #========================================================================== |