ecthros / pina-colada

A powerful and extensible wireless drop box
MIT License
264 stars 34 forks source link

app padding #127

Closed Kkevsterrr closed 7 years ago

Kkevsterrr commented 7 years ago

BS = 16 pad = lambda s: s + (BS - len(s) % BS) * chr(BS - len(s) % BS) unpad = lambda s : s[0:-ord(s[-1])]