Tiago Souza's research begins with a problem he also had to address as an engineer: what happens when one program leaves an encrypted file for another program that will start later? In his published experiment, the sender had already exited when the recipient retrieved the file. The recipient could still recover its contents because Canis, a separate key service Souza developed, held the private key needed to unlock the file's data key. Making that handoff work was an engineering result. Establishing when it worked, who could use it, and how it failed became the subject of his scientific study. [1]
The paper lists Souza as an independent researcher in Brazil. He traces the problem to a predecessor used for file exchange among financial applications written in Java, COBOL, and PowerBuilder, citing an August 2024 letter and his own account. That account explains the origin of the question; it is not evidence that the later open-source Canis implementation ran in those systems. For that implementation, the public record begins with Souza's December 2024 migration of an existing codebase from Mercurial to Git. The measured evidence came later, in a study he authored and published in Research, Society and Development on November 30, 2026. [1] [2]
Moving the key out of the handoff
The repository shows an architectural change rather than a finished design appearing at once. Its 2024 README described a recipient retrieving a private key from Canis. In April 2026, Souza committed client-side file-envelope support. In the design evaluated by his paper, the long-lived RSA private key stayed on the server. A sender made a fresh AES key for each file, encrypted the file locally, and stored the encrypted file together with a protected copy of that key. A recipient could arrive later, ask Canis to recover the file key, and decrypt the file locally. The project publishes the service and client under the MIT license. [1] [2] [3] [4]
That division kept the bulk file data off the key service and reduced the places where the long-lived private key was held. It did not remove every dependency: recovery still required Canis to be available with the matching stored keys and a client allowed to ask for them. Souza tested the handoff with separate Java 21 processes and synthetic files, checking that each recovered file matched its original bytes. The harness published complete encrypted files to shared storage; an actual workflow would have to provide that publication step. Two Java invocation paths worked in the study, but neither COBOL nor PowerBuilder was tested against the current implementation. The current repository describes a Java 25 service, so its latest tree should not be mistaken for the exact Java 21 artifact measured in the paper. [1] [4]
Who gets to recover the file?
Souza's experiments did not stop at whether a recipient could decrypt a file. They also tested what admission to the key service meant. Canis rejected an invalid password, yet a second admitted identity recovered a file under another service's key, including when it presented a distinct valid client certificate. Mutual TLS and an application login determine who enters the service; they do not give each admitted client a separate set of keys. The project's threat model makes that shared access explicit. It can suit applications that are already trusted to share a key namespace. Separate permissions for, say, payroll and billing would require separate Canis deployments or a service with key-specific rules. The project documents the former; the paper mentions Vault Transit as an example of the latter, without testing Vault. [1] [5] [6]
Another test exposed a different boundary. The recipient rejected a file whose authentication tag had been altered, but accepted a valid encrypted file presented again. The tag detects changes to the encrypted contents; it does not establish who sent the file or whether a receiving application has already processed it. A workflow in which one file triggers one payment, for example, would need its own controls against duplicate processing and for sender identity. [1]
What the experiments could establish
To move beyond a working demonstration, Souza framed the design as a set of testable questions about delayed recovery, access, timing, and faults. On one Windows host, all 2,000 synthetic files in 20 measured baseline runs were recovered and verified. Median throughput across four schedules ranged from about 1.45 to 2.02 files per second. Two schedules deliberately delayed the recipient by 60 seconds, so their lower rates include waiting time. These measurements describe the recorded workload, not a production capacity. [1]
In 20 paired runs, he compared the supported mutual-TLS path with a research fixture restricted to the same machine's loopback network. Depending on the schedule, median end-to-end time was about 5 to 552 milliseconds longer on the supported path. The fixture differed in request processing as well as transport, so the comparison cannot isolate the cost of TLS. This campaign used a clean code revision. The baseline, interoperability, and fault campaigns ran with uncommitted changes, limiting exact reproduction from their recorded revisions. [1]
The fault experiments brought the investigation back to the operator's problem. Removing or replacing the master-key file did not always stop a running server immediately: some work continued using key material already in memory. Restarting with invalid material failed. Restoring the matching database and master key allowed a previously encrypted file to be opened. All 21 fault invocations met their predefined checks, including cases where the correct result was refusal. That is not a measure of general availability or proof that an interrupted database write would survive a power loss; neither a scheduled-outage series nor power-loss durability was tested. [1]
Souza's recovery runbook turns that finding into an operational check. Before restoring normal traffic, operators must use the recovered service to decrypt a test file created before the incident and compare it with the expected contents. Startup alone shows less than successful recovery of an older file. The runbook therefore asks operators to verify the same delayed handoff that motivated the project. [7]
Souza began with a question about whether a recipient could open an encrypted file after its producer had gone. Canis gives a tested answer under shared trust, while his research specifies the keys, access, and recovery conditions that answer depends on. It also leaves visible what the experiments did not establish. Following those limits from code into a published study is how this practical engineering problem became a scientific investigation. [1] [5]
Editorial disclosure. OpenAI Codex assisted with source research, analysis, and drafting.
Professional and Academic Profiles
- GitHub — Tiago Souza
- Google Scholar — Tiago Souza
- Canis — Open-Source Project
- Scientific Publication — DOI
References
- Tiago Ribeiro de Souza. “Asynchronous encrypted file exchange and key recovery under shared trust: An empirical evaluation.” Research, Society and Development, 15(11), e210151152240, November 30, 2026. Journal article · DOI.
- Tiago Souza. Canis repository migration from Mercurial to Git, December 10, 2024.
- Tiago Souza. Canis client-side file envelope implementation, April 29, 2026.
- Canis project. Repository README, revision
7e7b01a, December 2, 2026. - Canis project. Threat model, revision
7e7b01a, December 2, 2026. - HashiCorp. Vault Transit secrets engine, accessed December 2, 2026.
- Canis project. Operational recovery runbook, revision
7e7b01a, December 2, 2026.