MCPcopy Index your code
hub / github.com/HelloZeroNet/ZeroNet / testDecryptEcies

Method testDecryptEcies

plugins/CryptMessage/Test/TestCrypt.py:24–27  ·  view source on GitHub ↗
(self, user)

Source from the content-addressed store, hash-verified

22 assert ecc.decrypt(encrypted) == text_repeated
23
24 def testDecryptEcies(self, user):
25 encrypted = base64.b64decode(self.ecies_encrypted_text)
26 ecc = CryptMessage.getEcc(self.privatekey)
27 assert ecc.decrypt(encrypted) == b"hello"
28
29 def testPublickey(self, ui_websocket):
30 pub = ui_websocket.testAction("UserPublickey", 0)

Callers

nothing calls this directly

Calls 1

decryptMethod · 0.80

Tested by

no test coverage detected