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

key file support #40

Open
clach04 opened this issue Mar 18, 2023 · 1 comment
Open

key file support #40

clach04 opened this issue Mar 18, 2023 · 1 comment

Comments

@clach04
Copy link
Owner

clach04 commented Mar 18, 2023

  1. PT (like Tombo, VimVry6, and AESZip) use a passphrase only (possibly with key derivation function) for encryption/decryption
  2. Many tools (like Opengpg, age, etc.) Use a key file (typically on disk, but not always) that is protected by a passphrase (typically, but not always) that maybe accessed via an agent or keyring. For:
    a. Symmetric encryption/decryption.
    b. Public/private key pair encryption/decryption.

Many tools transparently will handle 2.b. for decryption.
For 2.a and 2.b (for encryption) what would the work flow/UX be for an end user of PT?

@clach04
Copy link
Owner Author

clach04 commented Mar 22, 2023

Environment variables

Environment variables could name key, either generic variable or one variable per encryption backend. Example:

  • gpg - PT_KEY_GPG
  • age - PT_KEY_AGE
  • etc.

Config file

Right now, encryption classes do not have access to config.

overload passphrase

Passphrase could be keyname:passphrase for key.

@clach04 clach04 changed the title key support key file support Mar 24, 2023
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

1 participant