Encrypt a file from source to destination.
(source, destination, major, minor)
| 79 | ################################################################################ |
| 80 | |
| 81 | def encode_file(source, destination, major, minor): |
| 82 | 'Encrypt a file from source to destination.' |
| 83 | _check_major(major) |
| 84 | _check_minor(minor) |
| 85 | map_1 = _encode_map_1(major) |
| 86 | map_2 = _encode_map_2(minor) |
| 87 | string = source.read(2 ** 20 / 5) |
| 88 | while string: |
| 89 | destination.write(_encode(string, map_1, map_2)) |
| 90 | string = source.read(2 ** 20 / 5) |
| 91 | |
| 92 | def decode_file(source, destination, major, minor): |
| 93 | 'Decrypt a file from source to destination.' |
nothing calls this directly
no test coverage detected