Password Decript GPG public key
Stefan Claas
sac at 300baud.de
Tue Aug 25 21:20:44 CEST 2020
vedaal via Gnupg-users wrote:
>
>
> On 8/24/2020 at 8:36 AM, "Guille De La Torre via Gnupg-users" <gnupg-users at gnupg.org> wrote:
> >
> is it possible to create a key for symmetric encryption
> >in such a way that the person who has my public key does not need
> >to enter a password? to decrypt.
>
> =====
> No. and Yes. 8^)
>
> It is not possible that the person does not have to enter 'anything' to decrypt.
Maybe he could try to use a secret key without a passphrase and give then the secret
key personally to his friend?
A workflow like this can be done with sequoia-pgp, have not tested with GnuPG.
msg.txt: The quick brown fox jumps over the lazy dog.
sq key generate -c cv25519 -e key
No user ID given, using direct key signature
-----BEGIN PGP PRIVATE KEY BLOCK-----
Comment: 2E44 985D 3FAC 531F 029F F0EC 005C 8853 963C B85E
xVgEX0VhThYJKwYBBAHaRw8BAQdAl00Pc6ZL/UvWA4z9Auvv9iA2HICkZfwJzOwe
6Yg3+8UAAQDqa37jLZ3yzxZVm46R6Kg3vs2thHLjVLdOHa9Bp+LC+RLpwocEHxYK
ABgFgl9FYU4FiQWkj70CCwkCFQoCmwECHgEAIQkQAFyIU5Y8uF4WIQQuRJhdP6xT
HwKf8OwAXIhTljy4Xg4EAQD61fVvaPLLhoglET9SR16mjUQumIgU/LdGs7gSS0nm
kQD+M6GvdSjckDpf/cFutnir8OmOrg6ILpvFFrRVhVqPQQzHWARfRWFOFgkrBgEE
AdpHDwEBB0BtUk9+bJA8zfYDht94kfQjmEitlykWjccx5LWh7VHJOQABAJiL7HXP
KF+H2XfrbCspU1y15mdbk0o84qlTlPDBMGV9ELfCwDgEGBYKABIFgl9FYU4FiQWk
j70CmwICHgEAmAkQAFyIU5Y8uF52oAQZFgoABgWCX0VhTgAhCRCSUbL52YRWFhYh
BDnBZTfNWRsc6RHMj5JRsvnZhFYWUqMBAOlBob9vZLRf78Y2G0ReyrraIr5WnBzV
NDKr6lIHuUINAQDOqSHYXJNZ9i6kT9mu7INTAD0U9j8WlsTHDEYHkiMhBxYhBC5E
mF0/rFMfAp/w7ABciFOWPLhe5iwBAJxet8cZZI6YfE1qz1pUXSF/XBV/RR0pP6B4
dBYnOgy/AQDJaac+/9o/Rg7MSRMATSZFABhq0gc5NfPXP7J3VA9IAMddBF9FYU4S
CisGAQQBl1UBBQEBB0CdQ3BFqAUfHsJCqsCUpupbfXaJqivk26ywapJ4zhgXRAMB
CAkAAP9y3NMZM/14jHYw2rkJSS7nGF+QwEAMrFu8StTtkfcI+BF2woEEGBYKABIF
gl9FYU4FiQWkj70CmwwCHgEAIQkQAFyIU5Y8uF4WIQQuRJhdP6xTHwKf8OwAXIhT
ljy4XsiSAQCwrxIxD4wlh0Q67hksQlp4Tjn0Yq4onRbMQdMqmBHcawD/TnloezC8
ipZshjOeeimN6XXhyg/oJNj2K3+DKJIf4w4=
=qQ2b
-----END PGP PRIVATE KEY BLOCK-----
sq encrypt --recipient-key-file key < msg.txt > msg_enc.txt
msg_enc.txt:
-----BEGIN PGP MESSAGE-----
wV4DOqgrJ15WGrUSAQdAtkxy/GVuxw6MLOZerr2HTLcXlsouSxEiCEp2SZw0UiYw
nNK5qmhvslxZErJ3WMsmjGmwqFLTKYAh132HkH9fSDlCF9i1Qv/cGEf0Q2E0F98h
0mcBsvCcpBjLqFzQSEslEOPWEqW3CHbMi6pMZxfU/CcGwNZKfd7m6ccgi3505t41
OuAs/KtlF/qZbyy75mRmDoU8+3SaT9nasQsobFcuET1e4Es3yJZ3RKOdmLE3+FJO
u7gYo4wnDfUc
=YTSR
-----END PGP MESSAGE-----
sq decrypt --secret-key-file key < msg_enc.txt > output.txt
Encrypted using AES with 256-bit key
Compressed using ZIP
output.txt: The quick brown fox jumps over the lazy dog.
Regards
Stefan
More information about the Gnupg-users
mailing list