Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Magic Wormhole by JP Viljoen

Pycon ZA
October 05, 2017

Magic Wormhole by JP Viljoen

A Lightning Talk at PyConZA 2017

Pycon ZA

October 05, 2017
Tweet

More Decks by Pycon ZA

Other Decks in Programming

Transcript

  1. 10/11/2017 magic-wormhole file:///home/neil/Trees/ctpug/Pycon_organisers/PyConZA_2017_Slides/Other/talks/2017/pyconza-magic-wormhole-lightning-talk/index.html?print-pdf#1 1/18 magic-wormhole An Introduction 1 / 18

  2. 10/11/2017 magic-wormhole file:///home/neil/Trees/ctpug/Pycon_organisers/PyConZA_2017_Slides/Other/talks/2017/pyconza-magic-wormhole-lightning-talk/index.html?print-pdf#1 2/18 me An introduction 2 / 18

  3. 10/11/2017 magic-wormhole file:///home/neil/Trees/ctpug/Pycon_organisers/PyConZA_2017_Slides/Other/talks/2017/pyconza-magic-wormhole-lightning-talk/index.html?print-pdf#1 3/18 me An introduction @froztbyte (twitter /

    github) 3 / 18
  4. 10/11/2017 magic-wormhole file:///home/neil/Trees/ctpug/Pycon_organisers/PyConZA_2017_Slides/Other/talks/2017/pyconza-magic-wormhole-lightning-talk/index.html?print-pdf#1 4/18 me An introduction @froztbyte (twitter /

    github) Computer whisperer 4 / 18
  5. 10/11/2017 magic-wormhole file:///home/neil/Trees/ctpug/Pycon_organisers/PyConZA_2017_Slides/Other/talks/2017/pyconza-magic-wormhole-lightning-talk/index.html?print-pdf#1 5/18 Online at https://github.com/froztbyte/talks 5 / 18

  6. 10/11/2017 magic-wormhole file:///home/neil/Trees/ctpug/Pycon_organisers/PyConZA_2017_Slides/Other/talks/2017/pyconza-magic-wormhole-lightning-talk/index.html?print-pdf#1 6/18 everything is better with a story

    6 / 18
  7. 10/11/2017 magic-wormhole file:///home/neil/Trees/ctpug/Pycon_organisers/PyConZA_2017_Slides/Other/talks/2017/pyconza-magic-wormhole-lightning-talk/index.html?print-pdf#1 7/18 everything is better with a story

    Long ago, Glyph lamented that all he wanted to do was send a file over the internet. Since then, very little has changed. If you want to send a file to someone, you either attach it to an email, or you upload it to some central, cloud-based service that you both have access to: Google Drive; Dropbox; iCloud; etc. But what if you don’t want to do that? What if you want to send a file directly to someone, without intermediaries? 7 / 18
  8. 10/11/2017 magic-wormhole file:///home/neil/Trees/ctpug/Pycon_organisers/PyConZA_2017_Slides/Other/talks/2017/pyconza-magic-wormhole-lightning-talk/index.html?print-pdf#1 8/18 everything is better with a story

    Long ago, Glyph lamented that all he wanted to do was send a file over the internet. Since then, very little has changed. If you want to send a file to someone, you either attach it to an email, or you upload it to some central, cloud-based service that you both have access to: Google Drive; Dropbox; iCloud; etc. But what if you don’t want to do that? What if you want to send a file directly to someone, without intermediaries? (credit: jml, jml.io/2017/06/what-is-spake2.html) 8 / 18
  9. 10/11/2017 magic-wormhole file:///home/neil/Trees/ctpug/Pycon_organisers/PyConZA_2017_Slides/Other/talks/2017/pyconza-magic-wormhole-lightning-talk/index.html?print-pdf#1 9/18 SPAKE2 What is it? 9 /

    18
  10. 10/11/2017 magic-wormhole file:///home/neil/Trees/ctpug/Pycon_organisers/PyConZA_2017_Slides/Other/talks/2017/pyconza-magic-wormhole-lightning-talk/index.html?print-pdf… 10/18 SPAKE2 A protocol for: Password Authenticated

    Key Exchange (SPAKE2 is the concurrent variant of the protocol) 10 / 18
  11. 10/11/2017 magic-wormhole file:///home/neil/Trees/ctpug/Pycon_organisers/PyConZA_2017_Slides/Other/talks/2017/pyconza-magic-wormhole-lightning-talk/index.html?print-pdf… 11/18 Authentication How do you know the

    endpoint you're speaking to is the one you want? 11 / 18
  12. 10/11/2017 magic-wormhole file:///home/neil/Trees/ctpug/Pycon_organisers/PyConZA_2017_Slides/Other/talks/2017/pyconza-magic-wormhole-lightning-talk/index.html?print-pdf… 12/18 Authentication How do you know the

    endpoint you're speaking to is the one you want? (hint: it's the password) 12 / 18
  13. 10/11/2017 magic-wormhole file:///home/neil/Trees/ctpug/Pycon_organisers/PyConZA_2017_Slides/Other/talks/2017/pyconza-magic-wormhole-lightning-talk/index.html?print-pdf… 13/18 which brings us to.... 13 /

    18
  14. 10/11/2017 magic-wormhole file:///home/neil/Trees/ctpug/Pycon_organisers/PyConZA_2017_Slides/Other/talks/2017/pyconza-magic-wormhole-lightning-talk/index.html?print-pdf… 14/18 magic-wormhole find it here: github.com/warner/magic-wormhole 14

    / 18
  15. 10/11/2017 magic-wormhole file:///home/neil/Trees/ctpug/Pycon_organisers/PyConZA_2017_Slides/Other/talks/2017/pyconza-magic-wormhole-lightning-talk/index.html?print-pdf… 15/18 magic-wormhole Or just install it! pip

    install --user magic-wormhole 15 / 18
  16. 10/11/2017 magic-wormhole file:///home/neil/Trees/ctpug/Pycon_organisers/PyConZA_2017_Slides/Other/talks/2017/pyconza-magic-wormhole-lightning-talk/index.html?print-pdf… 16/18 LIVE DEMO! (because it's not a

    demo unless it can break!) 16 / 18
  17. 10/11/2017 magic-wormhole file:///home/neil/Trees/ctpug/Pycon_organisers/PyConZA_2017_Slides/Other/talks/2017/pyconza-magic-wormhole-lightning-talk/index.html?print-pdf… 17/18 and if that looked easy... state

    machine of (some) of what just happened credit: exarkun, twistedmatrix.com/~exarkun/wormhole-state-machines/ 17 / 18
  18. 10/11/2017 magic-wormhole file:///home/neil/Trees/ctpug/Pycon_organisers/PyConZA_2017_Slides/Other/talks/2017/pyconza-magic-wormhole-lightning-talk/index.html?print-pdf… 18/18 Questions Chat to me afterwards, or

    get in touch @froztbyte (twitter / github) 18 / 18