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

Method testEciesUtf8

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

Source from the content-addressed store, hash-verified

69 assert decrypted == ["hello", None, "hello"]
70
71 def testEciesUtf8(self, ui_websocket):
72 # Utf8 test
73 ui_websocket.actionEciesEncrypt(0, self.utf8_text)
74 encrypted = ui_websocket.ws.getResult()
75
76 ui_websocket.actionEciesDecrypt(0, encrypted)
77 assert ui_websocket.ws.getResult() == self.utf8_text
78
79 def testEciesAes(self, ui_websocket):
80 ui_websocket.actionEciesEncrypt(0, "hello", return_aes_key=True)

Callers

nothing calls this directly

Calls 3

actionEciesEncryptMethod · 0.80
getResultMethod · 0.80
actionEciesDecryptMethod · 0.80

Tested by

no test coverage detected