MCPcopy
hub / github.com/HelloZeroNet/ZeroNet / testAesUtf8

Method testAesUtf8

plugins/CryptMessage/Test/TestCrypt.py:119–124  ·  view source on GitHub ↗
(self, ui_websocket)

Source from the content-addressed store, hash-verified

117 assert ui_websocket.ws.getResult() == ["hello", "hello", None, "hello"]
118
119 def testAesUtf8(self, ui_websocket):
120 ui_websocket.actionAesEncrypt(0, self.utf8_text)
121 key, iv, encrypted = ui_websocket.ws.getResult()
122
123 ui_websocket.actionAesDecrypt(0, iv, encrypted, key)
124 assert ui_websocket.ws.getResult() == self.utf8_text

Callers

nothing calls this directly

Calls 3

actionAesEncryptMethod · 0.80
getResultMethod · 0.80
actionAesDecryptMethod · 0.80

Tested by

no test coverage detected