nitroglycerin v0.1.1 Nitroglycerin.Pad
A struct & constructor for holding the key details about a one-time pad file.
Summary
Functions
Generate a completed Nitroglycerin.Pad
from the pathname of a pad file
Record that some of a pad has been used
Functions
Generate a completed Nitroglycerin.Pad
from the pathname of a pad file.
If the pad file doesn’t exist, this struct will form the basis of the one that will be written.
Examples
> Nitroglycerin.Pad.from_path("random.pad")
%Nitroglycerin.Pad{
path: "random.pad",
usage_path: "random.pad.usage",
size: 12345678,
io: #PID<0.0.0>,
next_index: 0,
}