Upgrades
[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