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

Encrypting the PGP public key is unnecessary #582

Open
brassy-endomorph opened this issue Sep 13, 2024 · 0 comments
Open

Encrypting the PGP public key is unnecessary #582

brassy-endomorph opened this issue Sep 13, 2024 · 0 comments

Comments

@brassy-endomorph
Copy link
Collaborator

Is your feature request related to a problem? Please describe.

PGP public keys do not need to be encrypted.

hushline/hushline/model.py

Lines 127 to 136 in 53c65ee

@property
def pgp_key(self) -> str | None:
return decrypt_field(self._pgp_key)
@pgp_key.setter
def pgp_key(self, value: str) -> None:
if value is None:
self._pgp_key = None
else:
self._pgp_key = encrypt_field(value)

Describe the solution you'd like

Store the field as plaintext

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