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

Share the encrypted files #110

Open
radumarias opened this issue Aug 4, 2024 · 0 comments
Open

Share the encrypted files #110

radumarias opened this issue Aug 4, 2024 · 0 comments
Labels

Comments

@radumarias
Copy link
Member

radumarias commented Aug 4, 2024

Use cases

  • Share your vault (or some files) with another user by re-encrypting the content you share with a shared secret key based on your private and the other user's public

Implementation

Setup

  • The first time you start the application, it will generate private and public key

Receiver

  • Use our app to get the public key
  • Send it to Sender

Sender

  • With a CLI arg, specify the file path you want to send to the user. THIS IS AN ABSOLUTE PATH RELATIVE TO YOUR ENCRYPTED FOLDER VIEWED AS DECRYPTED

  • Decrypt the file with the original master key

  • Generate a shared secret encryption key from your private and the other user's public

  • Re-encrypt the file to be sent with this key

  • Include our public in the encrypted file's header

  • Send the file to user2. We don't handle this, it's outside of the application

Receiver

  • Receive the file from user1. We don't handle this, it's outside of the application

  • With a CLI arg, specify where to save the file you received. THIS IS AN ABSOLUTE PATH RELATIVE TO YOUR ENCRYPTED FOLDER VIEWED AS DECRYPTED

  • Extract the other user's public key from the encrypted file

  • Generate a shared secret encryption key from your private and the other user's public

  • Decrypt the encrypted content with the shared secret encryption key

  • Re-encrypt the file with our master key saved to the specified path

Maybe it would make sense to share also with age or OpenPGP similar to https://github.com/radumarias/rencfs/issues/233

@radumarias radumarias converted this from a draft issue Aug 4, 2024
@radumarias radumarias changed the title Investigate if it makes sense to have PGP support Use PGP to share the encrypted files Aug 27, 2024
@radumarias radumarias changed the title Use PGP to share the encrypted files Share the encrypted files Nov 16, 2024
@radumarias radumarias added this to the 1.x.0-rc1 milestone Nov 16, 2024
@radumarias radumarias added the good first issue Good for newcomers label Nov 16, 2024
@radumarias radumarias removed this from the 1.x.0-rc1 milestone Nov 16, 2024
@radumarias radumarias moved this from Todo to In Progress in rencfs Dec 4, 2024
@radumarias radumarias moved this from In Progress to Todo in rencfs Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant