MCPcopy Index your code
hub / github.com/pyload/pyload / value_encode

Method value_encode

module/lib/beaker/session.py:44–46  ·  view source on GitHub ↗
(self, val)

Source from the content-addressed store, hash-verified

42 return val[40:], val
43
44 def value_encode(self, val):
45 sig = HMAC.new(self.secret, val, SHA1).hexdigest()
46 return str(val), ("%s%s" % (sig, val))
47
48
49class Session(dict):

Callers

nothing calls this directly

Calls 2

hexdigestMethod · 0.80
newMethod · 0.45

Tested by

no test coverage detected