Commit f5e437c6 authored by Karl Fogel's avatar Karl Fogel
Browse files

Handle large plaintext input properly.

* onetime
  (main): When encrypting, read in 8k chunks, instead of reading the
    whole file into memory.  If someone has enough pad to encrypt
    their DVD collection, we should still perform acceptably.
parent 172ba6ff
......@@ -929,7 +929,7 @@ def main():
encoder = PadEncoder(pad, config)
while 1:
string =
string =
if len(string) > 0:
result = encoder.encode(string)
if result:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment