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

Add --account-keys option #95

Open
xecrets opened this issue Nov 13, 2024 · 0 comments
Open

Add --account-keys option #95

xecrets opened this issue Nov 13, 2024 · 0 comments

Comments

@xecrets
Copy link
Owner

xecrets commented Nov 13, 2024

Take a file serialized as a UserAccounts instance, containing a list of UserAccount instances, which in turn contains a keypair, where the private key is AxCrypt-encrypted with a password and base64-encoded.

Add the public keys to the list of loaded public keys, but only the most recent for a given email, and only if that is not already in the list of public keys.

Use the passwords to try to decrypt the private keys, and add the ones that can be decrypted to the LogOnIdentity that could decrypt it similar to how UseKeyPairOperation does it.

Optionally, if a second file is given, also write out an updated version of the account keys, with all decryptable private keys re-encrypted with the primary (first) password provided.

@xecrets xecrets changed the title Add --load-extra-keypairs option Add --account-keys option Nov 16, 2024
xecrets added a commit that referenced this issue Nov 17, 2024
xecrets added a commit that referenced this issue Nov 17, 2024
xecrets added a commit that referenced this issue Nov 18, 2024
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