You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tkanos 237f4c0ec5 Update 'README.md' 6 days ago
README.md Update 'README.md' 6 days ago

README.md

twtxt-encrypted-communication-proposal

Prerequesite

In order to be able to have encryption, each user should have in their metadata their public Key. And their private key path listed in their config file.

Proposal

When Bob wants to say something to Alice privately, the program needs to :

  • get Alice twtxt.txt file
  • get Alice Public Key in the metadata
  • Encrypt the entire line "time (#hash) text" with Alice Public Key, and put it in the twtxt.txt file So Bob twtxt.txt file will look like :
2022-09-18T11:27:50Z	(#abcdef)	hello world!
2022-09-18T11:28:53Z	(#ghijkl)	I'm doing great today
kueflcbelyq3;ir835p2r;ouwegbsl;bdglbjdgo;3ry9h5g;oh5ob;8h5go;hoh
2022-09-18T12:16:26Z	(#mnopqr)	Going to walk my dog.

When Someone doesn't having a program that handles encryption will read Bob twtxt.txt file

as it cannot parse the third line, it will hopefully jump that one, and do not show that line. Showing just :

2022-09-18T11:27:50Z	(#abcdef)	hello world!
2022-09-18T11:28:53Z	(#ghijkl)	I'm doing great today
2022-09-18T12:16:26Z	(#mnopqr)	Going to walk my dog.

When Mallory having a program that handles encryption reads Bob twtxt.txt file it will :

  • Read the 2 fist line and add them to the timeline
  • Will fail to read the third line, so it will try to decrypt it with Mallory's private Key
  • Failing to read with Mallory's pricate key, it will jump to the next line producing :
2022-09-18T11:27:50Z	(#abcdef)	hello world!
2022-09-18T11:28:53Z	(#ghijkl)	I'm doing great today
2022-09-18T12:16:26Z	(#mnopqr)	Going to walk my dog.

When Alice reads it, the program will :

  • Read the 2 fist line and add them to the time line
  • Will fail to read the third line, so it will try to decrypt it with Alice's private Key
  • Succeding to read with Alice's pricate key, it add the line to the timeline producing :
2022-09-18T11:27:50Z	(#abcdef)	hello world!
2022-09-18T11:28:53Z	(#ghijkl)	I'm doing great today
2022-09-18T11:44:13Z	(#ghijkl)	@Alice@instance.com you forget your phone at home, when I walk the dog I'll bring it to you.
2022-09-18T12:16:26Z	(#mnopqr)	Going to walk my dog.