💾 Archived View for rawtext.club › ~sloum › geminilist › 000457.gmi captured on 2020-09-24 at 02:33:26. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

<-- back to the mailing list

Regarding `gemini://` over NaCL (replacing TLS)

Ciprian Dorin Craciun ciprian.craciun at gmail.com

Sun Mar 1 01:31:47 GMT 2020

- - - - - - - - - - - - - - - - - - - ```

So I've taken Sean Conner advice and implemented a proof-of-conceptclient and server (only the protocol, transport and crypto part, notthe actual file serving) in Python by replacing TLS with NaCL /`libsodium`.



The code is available on GitHub:

    https://github.com/cipriancraciun/gemini-experiments/blob/e4bbeae01a8e7d2e393ab93317890f5c7f511b09/nacl/sources

The sources are structured as such:













Now regarding the transport / crypto and how it replaces TLS:

























A few notes about this encryption scheme:























I hope I haven't made too many mistakes, and I hope this is useful asa proof-of-concept that one could replace TLS for such simplerprotocols,Ciprian.