(filename)
| 62 | |
| 63 | |
| 64 | def readAndEncrypt(filename): |
| 65 | file = open(filename, "r") |
| 66 | data = file.read() |
| 67 | datalist = list(data) |
| 68 | encrypted_list = list() |
| 69 | encrypted_list_str = list() |
| 70 | for data in datalist: |
| 71 | current = ord(data) |
| 72 | current = encryptChar(current) |
| 73 | encrypted_list.append(current) |
| 74 | file.close() |
| 75 | return encrypted_list |
| 76 | |
| 77 | |
| 78 | def readAndEncryptAndSave(inp_file, out_file): |
no test coverage detected