Skip to content

A small CLI program allowing users to pad and unpad messages or files.

Notifications You must be signed in to change notification settings

706f6c6c7578/pad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

pad

Message Padding

A small utility allowing users to pad their messages to a fixed size, which they may always use, to make it harder for Eve to guess the content length of a given encrypted message.

Usage: pad -p 4096 < infile > outfile, to unpad: pad -u < infile > outfile.

+-----------------------------------------------------------------------+
|<-------------------------- padsize bytes ---------------------------->|
+-----------------------------------------------------------------------+
|<--- content bytes --->|<--- padding bytes --->|<--- uint64t value --->|
+-----------------------------------------------------------------------+

uint64t value is a little endian binary number representing byte_length(content).

To compute the byte size to pad for an even file size you may use the helper bash script padding.sh.

About

A small CLI program allowing users to pad and unpad messages or files.

Resources

Stars

Watchers

Forks

Packages

No packages published