Changes between Version 8 and Version 9 of Ticket #34661, comment 8
- Timestamp:
- Jun 18, 2023, 6:31:08 PM (17 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34661, comment 8
v8 v9 7 7 def encode(self, password, salt, iterations=None): 8 8 iterations = iterations or self.iterations 9 hash = pbkdf2(password, salt, iterations, digest=self.digest) 10 hash = base64.b64encode( 11 hash+settings.PASSWORD_PEPPER).decode('ascii').strip() 9 hash = pbkdf2(password, salt + settings.PASSWORD_PEPPER, iterations, digest=self.digest) 10 hash = base64.b64encode(hash).decode('ascii').strip() 12 11 return "%s$%d$%s$%s" % (self.algorithm, iterations, salt, hash) 13 12 }}}