Rewritten server.pad.endec functions.
Docs for server.pad.endec