fnp
/
cas.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fix README
[cas.git]
/
src
/
cas
/
hashers.py
1
from django.contrib.auth.hashers import BCryptPasswordHasher
2
3
4
class FNPBCryptPasswordHasher(BCryptPasswordHasher):
5
def salt(self):
6
bcrypt = self._load_library()
7
return bcrypt.gensalt(self.rounds, prefix=b"2a")
8