MCPcopy Create free account
hub / github.com/amyasnikov/validity / deserialize

Method deserialize

validity/fields/encrypted.py:62–64  ·  view source on GitHub ↗
(cls, value: str)

Source from the content-addressed store, hash-verified

60
61 @classmethod
62 def deserialize(cls, value: str):
63 salt, cipher = value.strip("$").split("$")
64 return cls(cipher.encode(), salt.encode())
65
66
67class EncryptedObject(EncryptedString):

Callers

nothing calls this directly

Calls 1

encodeMethod · 0.80

Tested by

no test coverage detected