Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Private messages (based in ZeroMail) #6

Closed
danimesq opened this issue Apr 11, 2017 · 18 comments
Closed

Private messages (based in ZeroMail) #6

danimesq opened this issue Apr 11, 2017 · 18 comments

Comments

@danimesq
Copy link
Contributor

No description provided.

@AnthyG
Copy link
Owner

AnthyG commented Apr 11, 2017

This will be one of the main features, as (I believe) ALL "chat"-applications have got this!

The features:

  • end2end-Encrypted
  • each User has a node in their data.json-File containing all private messages they sent, every message encrypted with the public key of the recipient, and only readable by that. The sender keeps a own file with all messages they have sent, encrypted and only readable with their own private key, not being seeded. both Users have the complete Chat-History (Encrypted, only readable with their own private key, and not being seeded)
  • Avatar and Username are displayed (maybe at the top?)
  • Add system to directly open private chat with a user through URL #97

@AnthyG AnthyG mentioned this issue Apr 11, 2017
@AnthyG AnthyG added this to Private Chat in Private and Group Chats Apr 11, 2017
@AnthyG AnthyG added this to the Private Chat milestone Apr 11, 2017
@AnthyG
Copy link
Owner

AnthyG commented Apr 14, 2017

It seems, that there's currently no way to directly connect to another peer, thus, the 2nd item in the list will have to be abandoned,.. at least for now.

@danimesq
Copy link
Contributor Author

@mkg20001

@mkg20001
Copy link

There is a function that one can use to encrypt/decrypt stuff with the key.
https://zeronet.readthedocs.io/en/latest/site_development/zeroframe_api_reference/?highlight=eciesEncrypt

@AnthyG
Copy link
Owner

AnthyG commented Apr 14, 2017

I am aware of that function, but thanks anyways 😄

@AnthyG
Copy link
Owner

AnthyG commented Apr 14, 2017

I've got the private chat working,.. basically..

The only problem I'm encountering right now, is that the sender can't read his own messages, as they are encrypted with the public key of the recipient, who is the only one who can read the messages sent to him, as he is the only one, who has his own private key.

So I could save all the messages sent, into another file, which doesn't get seeded, as I already described in the first comment I wrote in this Issue, but, anybody who has the private key of the sender, would then be able to read ALL the messages he sent, and received.
And that is not really good I think, is it!? 👎

@mkg20001
Copy link

mkg20001 commented Apr 14, 2017

Why not encrypt them twice. With your own and the receivers public key?
Edit: Password protect the chat.

@AnthyG
Copy link
Owner

AnthyG commented Apr 14, 2017

@mkg20001 what exactly do you mean with password-protecting the chat? Which chat?

@AnthyG
Copy link
Owner

AnthyG commented Apr 14, 2017

The idea with encrypting twice is pretty good!
I'm trying it right now :)

@AnthyG
Copy link
Owner

AnthyG commented Apr 14, 2017

Created branch private_chats-Feature

@AnthyG
Copy link
Owner

AnthyG commented Apr 14, 2017

It works!

Though I couldn't get the double-encryption working, that @mkg20001 suggested 😞
And I tried getting it to work for about 1hour now, so I will rethink it another time, but my brain is just to cluttered to get anything else working..

The two commits:
e32cbec, 3ec8b70

Here's a preview:
(Note, I haven't yet added input's, and I actually created a contact-list-like thingy, but it doesn't quite seem to work, as it just resets whenever the user sends a message,.. and I really don't know why)

image

@AnthyG
Copy link
Owner

AnthyG commented Apr 15, 2017

I just tried several tests, and the IV and AES-Key (that are the same: btoa(recipient) (base64)) are actually just too short...................

WOW

Somewhat correct, but I don't really know the reason.

So here's the commit anyways: 4a8ab6c

@AnthyG
Copy link
Owner

AnthyG commented Apr 15, 2017

Added working user-selection tabs and message-input for private chat with a924ff4.

But I won't guarantee anything for now..

@AnthyG
Copy link
Owner

AnthyG commented Apr 15, 2017

Commit b578b6b added the ability to click a users public key, listed in the "Last seen"-Tab, to open up a private chat with said user.

@AnthyG
Copy link
Owner

AnthyG commented Nov 17, 2017

Fixed some things with commit 4c14024

@AnthyG
Copy link
Owner

AnthyG commented Nov 18, 2017

Changed a few things with commit 34190c1

@AnthyG
Copy link
Owner

AnthyG commented Nov 24, 2017

Reference to #97

@AnthyG
Copy link
Owner

AnthyG commented Dec 8, 2017

I will close this issue, as the basic functions of the private chat have been added with previous commits.
For new bugs found/ ideas/ improvements for the private chat, new issues can be created.

@AnthyG AnthyG closed this as completed Dec 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

3 participants