MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / setKey

Method setKey

pager_lib/smb/utils/pyDes.py:130–133  ·  view source on GitHub ↗

Will set the crypting key for this object.

(self, key)

Source from the content-addressed store, hash-verified

128 return self.__key
129
130 def setKey(self, key):
131 """Will set the crypting key for this object."""
132 key = self._guardAgainstUnicode(key)
133 self.__key = key
134
135 def getMode(self):
136 """getMode() -> pyDes.ECB or pyDes.CBC"""

Callers

nothing calls this directly

Calls 1

_guardAgainstUnicodeMethod · 0.95

Tested by

no test coverage detected