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

Whether the chat key is secure #323

Closed
ShareTheWorld opened this issue Dec 29, 2022 · 2 comments
Closed

Whether the chat key is secure #323

ShareTheWorld opened this issue Dec 29, 2022 · 2 comments

Comments

@ShareTheWorld
Copy link

const id = ${community.publicKey}${uuid}
const contentTopic = idToContentTopic(id)
const symmetricKey = await generateKeyFromPassword(id)

return new Chat({
  client,
  uuid,
  id,
  contentTopic,
  type,
  symmetricKey,
  description,
})

Your public Key and uuid are concatenated into ids. Then hashes Keccak256(id) with the id to get the contentTopic. Finally use PBKDF2(id) to get the chat key.
Since Publickeys and uuid are public, are topic and key unsafe?

@felicio
Copy link
Collaborator

felicio commented Jan 3, 2023

@felicio felicio closed this as completed Jan 3, 2023
@felicio
Copy link
Collaborator

felicio commented Jan 3, 2023

Follow up #324

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants