Shift left your infrastructure as code by running the .tf source through...
Shift left your infrastructure as code by running the .tf source through
```python
def shift_left_bytes(bytedata: bytes) -> bytes:
result = bytearray()
carry = 0
for b in bytedata:
shifted = ((b << 1) & 0xFF) | carry
carry = (b & 0x80) >> 7 # Save leftmost bit to carry to next byte
result.append(shifted)
return bytes(result)
```
Self-replies
See, twice as good now.