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

Use age or OpenPGP instead of password #233

Open
radumarias opened this issue Nov 16, 2024 · 2 comments
Open

Use age or OpenPGP instead of password #233

radumarias opened this issue Nov 16, 2024 · 2 comments
Assignees
Labels

Comments

@radumarias
Copy link
Member

radumarias commented Nov 16, 2024

How password works

  • From the password, we generate a key with KDF. Let's call it key1
  • We generate a random master encryption key used to encrypt the files
  • We encrypt the master encryption key with the first key, key1

How we'll change it instead of using the password

The first time we run the app

  • We set age or PGP, if not set already
  • For that, we will use an age or PGP client
  • We generate a random master encryption key used to encrypt the files
  • We encrypt the master encryption key with the first key, key1
  • Use that for encryption

When open it again

  • Decrypt master encryption key with age
  • Use that for encryption
@radumarias radumarias changed the title Encrypt with age or PGP or GPG instead of password Encrypt with age, PGP or GPG instead of password Nov 16, 2024
@radumarias radumarias moved this to Todo in rencfs Nov 16, 2024
@radumarias radumarias modified the milestone: 1.x.0-rc1 Nov 16, 2024
@radumarias radumarias changed the title Encrypt with age, PGP or GPG instead of password Encrypt with age and OpenPGP Nov 16, 2024
@BLRGAdityaC
Copy link
Collaborator

Hi there @radumarias, I recently contacted you on Slack regarding working on this Issue. I will contact you on Slack or post relevant questions/clarifications here as I work on the project.

@radumarias
Copy link
Member Author

Hi there @radumarias, I recently contacted you on Slack regarding working on this Issue. I will contact you on Slack or post relevant questions/clarifications here as I work on the project.

sure

@radumarias radumarias moved this from Todo to In Progress in rencfs Dec 3, 2024
@radumarias radumarias changed the title Encrypt with age and OpenPGP Use age or OpenPGP instead of password Dec 4, 2024
@BLRGAdityaC BLRGAdityaC self-assigned this Dec 4, 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

2 participants