MCPcopy
hub / github.com/wechatpy/wechatpy / encrypt

Method encrypt

wechatpy/crypto/cryptography.py:12–14  ·  view source on GitHub ↗
(self, plaintext)

Source from the content-addressed store, hash-verified

10 self.cipher = cipher
11
12 def encrypt(self, plaintext):
13 encryptor = self.cipher.encryptor()
14 return encryptor.update(plaintext) + encryptor.finalize()
15
16 def decrypt(self, ciphertext):
17 decryptor = self.cipher.decryptor()

Callers

nothing calls this directly

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected