ScratchData LogoScratchData
Back to cv88's profile

Diffie-Helman secure message exchange

CVcv88•Created January 8, 2018
Diffie-Helman secure message exchange
2
2
12 views
View on Scratch

Instructions

Welcome to the best way to send messages on scratch, the Diffie-Helman secure message exchange! If you want to send a message, ask your friend to go to this project, type t at the prompt, and accept the offer when it comes. As for you, type r at the prompt when your friend is ready (the connectant's user id should change), and the exchanging process will begin. DO NOT CLOSE THE WINDOW at this stage without resetting the session. No two pairs may communicate at the same time, but there is hardly any risk of that. This project uses a diffie-helman key exchange to generate a secure key between two parties using modular arithmetic and the power function, and allows anyone to send a number COMPLETELY ANONYMOUSLY over scratch. Even somebody looking at the cloud variables would still not be able to decrypt the messages, unless they had a pretty powerful computer available.

Description

Credit to Whitfield Diffie and Martin Hellman who invented this kind of cryptography. They would be turning in their grave that I'm using ** as a mod prime. The best explanation of this I can find is here: (it's quite simple) https://www.youtube.com/watch?v=NmM9HA2MQGI

Project Details

Project ID196666312
CreatedJanuary 8, 2018
Last ModifiedFebruary 12, 2018
SharedJanuary 8, 2018
Visibilityvisible
CommentsAllowed