in reply to Re^5: binmode copy loses final byte
in thread binmode copy loses final byte

Note that my padding algorithm may not be optimal from a cryptographic standpoint. I have not researched the padding algorithms used in crypto. But I doubt you care :)

Also, you've confirmed that I doesn't make sense. The encryption should work the same on every machine. You want L< (or L>) or Q< (or Q>). See Mini-Tutorial: Formats for Packing and Unpacking Numbers.