INNER CODE UNIT · Python
payload_path
Nour833/StegoForge · web/app.py:148
payload_path = td_path / payload_name
carrier_path.write_bytes(carrier_file.read())
payload_path.write_bytes(payload_file.read())
decoy_path = None
if decoy_file and decoy_key:
decoy_name = decoy_file.filename or "decoy.bin"
decoy_path = td_path / decoy_name
decoy_path.write_bytes(decoy_file.read())
result = op_encode(
str(carrier_path),
str(payload_path),
key,
None,
method,
depth,
str(decoy_path) if decoy_path else None,