MCPcopy Create free account
hub / github.com/Fadi002/de4py / decode_b64

Method decode_b64

de4py/engines/onyx/string_decoder.py:191–196  ·  view source on GitHub ↗
(m)

Source from the content-addressed store, hash-verified

189 r'(?:\.decode\s*\([^)]*\))?'
190 )
191 def decode_b64(m):
192 try:
193 raw = m.group(2).replace('\n','').replace(' ','')
194 return repr(base64.b64decode(raw).decode('utf-8', errors='replace'))
195 except Exception:
196 return m.group(0)
197 return pattern.sub(decode_b64, source)
198
199 def _decode_base64_dynamic_import(self, source: str) -> str:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected