MCPcopy Create free account
hub / github.com/ActiveState/code / dumps

Method dumps

recipes/Python/576980_Authenticated/recipe-576980.py:60–62  ·  view source on GitHub ↗

pickle and encrypt a python object

(self, obj, pickler=pickle)

Source from the content-addressed store, hash-verified

58 return data[:-ord(data[-1])]
59
60 def dumps(self, obj, pickler=pickle):
61 """pickle and encrypt a python object"""
62 return self.encrypt(self.PICKLE_PAD + pickler.dumps(obj))
63
64 def loads(self, data, pickler=pickle):
65 """decrypt and unpickle a python object"""

Callers 15

recipe-578696.pyFile · 0.45
recipe-502237.pyFile · 0.45
recipe-334621.pyFile · 0.45
recipe-335817.pyFile · 0.45
recipe-579126.pyFile · 0.45
writeMethod · 0.45
saveFunction · 0.45
__call__Method · 0.45
__setitem__Method · 0.45
saveMethod · 0.45
distinctMethod · 0.45
__setitem__Method · 0.45

Calls 1

encryptMethod · 0.95

Tested by

no test coverage detected