MCPcopy Index your code
hub / github.com/pgadmin-org/pgadmin4 / sign

Method sign

web/pgadmin/utils/session.py:155–162  ·  view source on GitHub ↗
(self, secret)

Source from the content-addressed store, hash-verified

153 self.permanent = True
154
155 def sign(self, secret):
156 if not self.hmac_digest:
157 population = string.ascii_lowercase + string.digits
158
159 self.randval = ''.join(
160 secrets.choice(population) for i in range(20))
161 self.hmac_digest = _calc_hmac(
162 '%s:%s' % (self.sid, self.randval), secret)
163
164
165class SessionManager():

Callers 9

ChenNotationFunction · 0.80
putMethod · 0.80
runTestMethod · 0.80
runTestMethod · 0.80
runTestMethod · 0.80
runTestMethod · 0.80
runTestMethod · 0.80
runTestMethod · 0.80
runTestMethod · 0.80

Calls 2

_calc_hmacFunction · 0.85
joinMethod · 0.80

Tested by 7

runTestMethod · 0.64
runTestMethod · 0.64
runTestMethod · 0.64
runTestMethod · 0.64
runTestMethod · 0.64
runTestMethod · 0.64
runTestMethod · 0.64