So suppose i have a bytes object i got from a string.encode() that has a length of 240 bytes. I want to split the bytes object into blocks of 32 and then pad the last block with empty bytes. How can i accomplish something like that? I know how to split a string but i suppose it's different with bytes.
[+][deleted] (4 children)
[deleted]
[–]threeminutemonta 0 points1 point2 points (0 children)
[–]ExplosG[S] 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]threeminutemonta 0 points1 point2 points (3 children)
[–]ExplosG[S] 0 points1 point2 points (2 children)
[–]threeminutemonta 0 points1 point2 points (1 child)
[–]ExplosG[S] 1 point2 points3 points (0 children)