MCPcopy
hub / github.com/claude-code-best/claude-code / decryptAesEcb

Function decryptAesEcb

packages/weixin/src/media.ts:18–21  ·  view source on GitHub ↗
(ciphertext: Buffer, key: Buffer)

Source from the content-addressed store, hash-verified

16}
17
18export function decryptAesEcb(ciphertext: Buffer, key: Buffer): Buffer {
19 const decipher = createDecipheriv('aes-128-ecb', key, null)
20 return Buffer.concat([decipher.update(ciphertext), decipher.final()])
21}
22
23export function aesEcbPaddedSize(size: number): number {
24 return size + (16 - (size % 16))

Callers 2

downloadAndDecryptFunction · 0.85
media.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected