MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / createPasswordHash

Method createPasswordHash

src/astroprint/users.py:21–24  ·  view source on GitHub ↗
(password)

Source from the content-addressed store, hash-verified

19
20 @staticmethod
21 def createPasswordHash(password):
22 if password is not None:
23 return hashlib.sha512(password + boxrouterManager().boxId).hexdigest()
24 return None
25
26 def getLoggedUser(self):
27 loggedUser = settings().get(['cloudSlicer', 'loggedUser'])

Callers 6

signinMethod · 0.80
validatePasswordMethod · 0.80
addUserMethod · 0.80
changeUserPinMethod · 0.80
changeUserPasswordMethod · 0.80
check_pinMethod · 0.80

Calls 1

boxrouterManagerFunction · 0.90

Tested by

no test coverage detected